Tomographer  v5.3
Tomographer C++ Framework Documentation
Tomographer::MAT::VarValueDecoder< std::vector< Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols >, Alloc > > Class Template Reference

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)
 

Detailed Description

template<typename Scalar, int Rows, int Cols, int Options, int MaxRows, int MaxCols, typename Alloc>
class Tomographer::MAT::VarValueDecoder< std::vector< Eigen::Matrix< Scalar, Rows, Cols, Options, MaxRows, MaxCols >, Alloc > >

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.

Definition at line 1969 of file ezmatio.h.


The documentation for this class was generated from the following file: