Tomographer
v5.3
Tomographer C++ Framework Documentation
|
Decoder for a std::vector of elements of type Eigen::Matrix. More...
#include <tomographer/tools/ezmatio.h>
Public Types | |
typedef Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols > | MatrixType |
typedef Eigen::NumTraits< Scalar >::Real | RealScalar |
typedef std::vector< MatrixType, Alloc > | RetType |
Static Public Member Functions | |
static void | checkShape (const Var &var) |
static RetType | decodeValue (const Var &var) |
Decoder for a std::vector of elements of type Eigen::Matrix.
This decoder decodes multidimensional tensors with number of dimensions >= 3. For multidimensional tensors with number of dimensions == 3, the first two indices indicate the inner matrix dimensions, and the last index indicates the position in the std::vector. For multidimensional tensors also with number of dimensions >3, all further dimensions are collapsed with the 3rd dimension in column-major ordering, as the std::vector index.