Deep Learning Algorithm Implementations 1.0.0
C++ implementations of fundamental deep learning algorithms
|
Classes | |
class | AddFunction |
Addition function. More... | |
class | DotFunction |
Matrix multiplication function. More... | |
class | Function |
Function node in the computational graph. More... | |
class | Matrix |
class | MulFunction |
Element-wise multiplication function. More... | |
class | SigmoidFunction |
Sigmoid function. More... | |
class | SubFunction |
Subtraction function. More... | |
class | SumFunction |
Sum function. More... | |
class | TransposeFunction |
Transpose function. More... | |
class | Variable |
Variable class that supports automatic differentiation. More... | |
Typedefs | |
using | VariableF = Variable< float > |
using | VariableD = Variable< double > |
Type Aliases | |
using | MatrixF = Matrix< float > |
Single-precision floating point matrix. | |
using | MatrixD = Matrix< double > |
Double-precision floating point matrix. | |
Functions | |
template std::ostream & | operator<<< float > (std::ostream &, const Matrix< float > &) |
template std::ostream & | operator<<< double > (std::ostream &, const Matrix< double > &) |
template Matrix< float > | dot< float > (const Matrix< float > &, const Matrix< float > &) |
template Matrix< double > | dot< double > (const Matrix< double > &, const Matrix< double > &) |
template float | sum< float > (const Matrix< float > &) |
template double | sum< double > (const Matrix< double > &) |
template float | mean< float > (const Matrix< float > &) |
template double | mean< double > (const Matrix< double > &) |
Non-member Functions | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &os, const Matrix< T > &matrix) |
Output stream operator for matrix visualization. | |
template<typename T > | |
Matrix< T > | dot (const Matrix< T > &a, const Matrix< T > &b) |
Compute dot product of two matrices. | |
template<typename T > | |
T | sum (const Matrix< T > &matrix) |
Calculate sum of all matrix elements. | |
template<typename T > | |
T | mean (const Matrix< T > &matrix) |
Calculate mean of all matrix elements. | |
using utils::MatrixD = typedef Matrix<double> |
Double-precision floating point matrix.
Definition at line 334 of file matrix.hpp.
using utils::MatrixF = typedef Matrix<float> |
Single-precision floating point matrix.
Definition at line 329 of file matrix.hpp.
using utils::VariableD = typedef Variable<double> |
Definition at line 274 of file autograd.hpp.
using utils::VariableF = typedef Variable<float> |
Definition at line 273 of file autograd.hpp.
Compute dot product of two matrices.
a | First matrix |
b | Second matrix |
Definition at line 155 of file matrix.cpp.
template Matrix< double > utils::dot< double > | ( | const Matrix< double > & | , |
const Matrix< double > & | |||
) |
template Matrix< float > utils::dot< float > | ( | const Matrix< float > & | , |
const Matrix< float > & | |||
) |
T utils::mean | ( | const Matrix< T > & | matrix | ) |
Calculate mean of all matrix elements.
matrix | Input matrix |
Definition at line 171 of file matrix.cpp.
template double utils::mean< double > | ( | const Matrix< double > & | ) |
template float utils::mean< float > | ( | const Matrix< float > & | ) |
std::ostream & utils::operator<< | ( | std::ostream & | os, |
const Matrix< T > & | matrix | ||
) |
Output stream operator for matrix visualization.
os | Output stream |
matrix | Matrix to output |
Definition at line 149 of file matrix.cpp.
template std::ostream & utils::operator<<< double > | ( | std::ostream & | , |
const Matrix< double > & | |||
) |
template std::ostream & utils::operator<<< float > | ( | std::ostream & | , |
const Matrix< float > & | |||
) |
T utils::sum | ( | const Matrix< T > & | matrix | ) |
Calculate sum of all matrix elements.
matrix | Input matrix |
Definition at line 166 of file matrix.cpp.
template double utils::sum< double > | ( | const Matrix< double > & | ) |
template float utils::sum< float > | ( | const Matrix< float > & | ) |