MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
tensor.h File Reference

Go to the source code of this file.

Classes

class  maia::tensor::Tensor< T >
 Provides a lightweight and fast class for accessing 1D arrays as multi-dimensional tensors (up to 4D). More...
 
class  maia::tensor::detail_::TensorStorage< T >
 A vector-like data storage class that supports both internal and external storage mechanisms. More...
 

Namespaces

namespace  maia
 Namespace for auxiliary functions/classes.
 
namespace  maia::tensor
 Namespace that contains all classes, functions and constants needed for Tensor.
 
namespace  maia::tensor::detail_
 

Typedefs

typedef maia::tensor::Tensor< MFloatMFloatVector
 
typedef maia::tensor::Tensor< MIntMIntVector
 
typedef maia::tensor::Tensor< MFloatMFloatMatrix
 
typedef maia::tensor::Tensor< MIntMIntMatrix
 
typedef maia::tensor::Tensor< MFloatMFloatTensor
 
typedef maia::tensor::Tensor< MIntMIntTensor
 

Functions

template<class TT >
std::ostream & maia::tensor::operator<< (std::ostream &os, const Tensor< TT > &t)
 Prints the values of the Tensor object together with the respective index. More...
 
template<class TT >
void maia::tensor::swap (Tensor< TT > &a, Tensor< TT > &b)
 Non-member swap exchanges the contents of two Tensors. More...
 
template<class TT >
void maia::tensor::detail_::swap (TensorStorage< TT > &a, TensorStorage< TT > &b)
 Swap the contents between two TensorStorage objects. More...
 

Typedef Documentation

◆ MFloatMatrix

Definition at line 1098 of file tensor.h.

◆ MFloatTensor

Definition at line 1101 of file tensor.h.

◆ MFloatVector

Definition at line 1095 of file tensor.h.

◆ MIntMatrix

Definition at line 1099 of file tensor.h.

◆ MIntTensor

Definition at line 1102 of file tensor.h.

◆ MIntVector

Definition at line 1096 of file tensor.h.