My Project
|
Implements mathematical tensor (Max 4d) More...
Public Member Functions | |
Tensor (int i) | |
Tensor (int i, int j) | |
Tensor (int i, int j, int k) | |
Tensor (int i, int j, int k, int l) | |
template<typename Sizes > | |
void | resizeI (const Sizes &sizes) |
void | flatten () |
T & | operator() (int i) |
T & | operator() (int i, int j) |
const T & | operator() (int i, int j) const |
T & | operator() (int i, int j, int k) |
const T & | operator() (int i, int j, int k) const |
T & | operator() (int i, int j, int k, int l) |
const T & | operator() (int i, int j, int k, int l) const |
void | fill (const T &value) |
Tensor | operator+ (const Tensor &other) |
Tensor | multiply (const Tensor &other) |
Tensor | dot (const Tensor &other) |
void | swap (Tensor &other) |
Public Attributes | |
std::vector< int > | dims_ |
std::vector< T > | data_ |
Implements mathematical tensor (Max 4d)