Tomographerv5.4
Tomographer C++ Framework Documentation
|
Utilities for reading MATLAB "*.mat"
data files. See Tomographer::MAT.
More...
#include <cstdint>
#include <cerrno>
#include <complex>
#include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <stdexcept>
#include <sstream>
#include <initializer_list>
#include <utility>
#include <matio.h>
#include <Eigen/Core>
#include <tomographer/tools/cxxutil.h>
#include <tomographer/tools/eigenutil.h>
#include <tomographer/tools/fmt.h>
#include <tomographer/mathtools/pos_semidef_util.h>
Go to the source code of this file.
Namespaces | |
Tomographer | |
Base namespace for the Tomographer project. | |
Tomographer::MAT | |
Utilities and helpers for reading MATLAB .mat files. | |
Macros | |
#define | MAT_SWITCH_REAL_TYPE(typ, ...) |
Useful hack to get C++ real scalar type from dynamical MAT type ID. More... | |
#define | MAT_SWITCH_COMPLEX_TYPE(typ, ...) |
Useful hack to get C++ complex type from dynamical MAT type ID. More... | |
#define | MAT_SWITCH_TYPE(matvar_ptr, ...) |
Useful hack to get C++ type from dynamical MAT type ID. More... | |
Functions | |
template<typename It , typename ValueType = typename std::iterator_traits<It>::value_type> | |
ValueType | Tomographer::MAT::getNumEl (It begin, It end) |
Calculate the product of all dimensions. More... | |
std::ostream & | Tomographer::MAT::operator<< (std::ostream &out, const DimList &dlist) |
C++ output stream operators for a DimList. | |
template<bool IsRowMajor> | |
std::ostream & | Tomographer::MAT::operator<< (std::ostream &str, const IndexList< IsRowMajor > &indexlist) |
C++ output stream operator for IndexList. | |
template<bool IsRowMajor, typename IntType > | |
std::ostream & | Tomographer::MAT::operator<< (std::ostream &str, const IndexListIterator< IsRowMajor, IntType > &indexlistit) |
C++ output stream operator for IndexListIterator. | |
template<typename T > | |
VarValueDecoder< T >::RetType | Tomographer::MAT::value (const Var &var) |
Access the value of the given variable, as a C++ type. More... | |
template<typename T , ENABLED_IF( tomo_internal::has_params_member< VarValueDecoder< T > >::value) > | |
VarValueDecoder< T >::RetType | Tomographer::MAT::value (const Var &var, const typename VarValueDecoder< T >::Params ¶ms) |
Access the value of the given variable, as a C++ type. More... | |
std::ostream & | Tomographer::MAT::operator<< (std::ostream &str, const VarShape &varshape) |
C++ output stream operator for VarShape . | |
Utilities for reading MATLAB "*.mat"
data files. See Tomographer::MAT.
Definition in file ezmatio.h.
#define MAT_SWITCH_COMPLEX_TYPE | ( | typ, | |
... | |||
) |
Useful hack to get C++ complex type from dynamical MAT type ID.
The MAT type ID is checked against MAT_T_DOUBLE and MAT_T_SINGLE only, and the corresponding code executed with the identifier Type defined as the appropriate C++ std::complex<T> type.
#define MAT_SWITCH_REAL_TYPE | ( | typ, | |
... | |||
) |
Useful hack to get C++ real scalar type from dynamical MAT type ID.
This works like a switch(){ ... } statement, where the typ is checked against MAT_T_DOUBLE, MAT_T_SINGLE, etc. and where the given code (...) is executed with the identifier Type set to the given C++ type.
#define MAT_SWITCH_TYPE | ( | matvar_ptr, | |
... | |||
) |
Useful hack to get C++ type from dynamical MAT type ID.
If the variable corresponding to matvar_ptr is of complex type, then this macro behaves just like MAT_SWITCH_REAL_TYPE. If it is of complex type, then it behaves just like MAT_SWITCH_COMPLEX_TYPE.