|
| | Tensor4 () |
| | Default constructor. More...
|
| |
| | Tensor4 (unsigned int n1, unsigned int n2, unsigned int n3, unsigned int n4) |
| | Constructor for Tensor2D It is responsible for setting the dimensions of the tensor, including the total number of elements. It is also responsible for allocating memory for the underlying array, and zeroing it. More...
|
| |
| | ~Tensor4 () |
| | Destructor for Tensor2D It is responsible for freeing and invalidating the underlying array. More...
|
| |
| | Tensor4 (const Tensor2< T > &A) |
| |
| Tensor4< T > & | operator= (const Tensor4< T > &input) |
| |
| | Tensor4 (const Tensor4< T > &input) |
| |
| unsigned int | getNVals () const |
| |
| T & | operator() (unsigned int i, unsigned int j, unsigned int k, unsigned int l) |
| |
| T & | operator() (unsigned int flatIdx) |
| |
| T | getVal (unsigned int i, unsigned int j, unsigned int k, unsigned int l) const |
| |
| T | getValFlat (unsigned int flatIdx) const |
| |
| T | frobeniusNorm () const |
| |
| void | invInPlace () |
| |
| Tensor4< T > | inv () const |
| |
| void | printToStream (std::ostream &out) |
| |
| unsigned int | getn1 () const |
| |
| unsigned int | getn2 () const |
| |
| unsigned int | getn3 () const |
| |
| unsigned int | getn4 () const |
| |
|
| template<typename U , unsigned int M, unsigned int N, unsigned int P, unsigned int Q> |
| class | Tensor4CUDA |
| |
| template<typename U > |
| bool | areSameShape (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| void | assertSameShape (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| bool | operator== (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| bool | operator!= (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| void | assertCompatibleForContraction (const Tensor4< U > &A, const Tensor2< U > &B) |
| |
| template<typename U > |
| void | assertCompatibleForContraction (const Tensor4< U > &A, const Tensor2< U > &B, const Tensor2< U > &C) |
| |
| template<typename U > |
| Tensor2< U > | contract (const Tensor4< U > &A, const Tensor2< U > &B) |
| |
| template<typename U > |
| void | contractInPlace (const Tensor4< U > &A, const Tensor2< U > &B, Tensor2< U > &C) |
| |
| template<typename U > |
| void | assertCompatibleForContraction (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| Tensor4< U > | contract (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| void | assertCompatibleForOuterProduct (const Tensor2< U > &A, const Tensor2< U > &B, const Tensor4< U > &C) |
| |
| template<typename U > |
| void | outerInPlace (const Tensor2< U > &A, const Tensor2< U > &B, Tensor4< U > &C) |
| |
| template<typename U > |
| Tensor4< U > | operator+ (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| Tensor4< U > | operator+ (const Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| Tensor4< U > | operator+ (const U &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| void | operator+= (Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| void | operator+= (Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| Tensor4< U > | operator- (const Tensor4< U > &A) |
| |
| template<typename U > |
| Tensor4< U > | operator- (const Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| Tensor4< U > | operator- (const Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| Tensor4< U > | operator- (const U &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| void | operator-= (Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| void | operator-= (Tensor4< U > &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| Tensor4< U > | operator* (const Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| Tensor4< U > | operator* (const U &A, const Tensor4< U > &B) |
| |
| template<typename U > |
| void | operator*= (Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| Tensor4< U > | operator/ (const Tensor4< U > &A, const U &B) |
| |
| template<typename U > |
| void | operator/= (Tensor4< U > &A, const U &B) |
| |