NiHu  2.0
NiHu::mex::real_matrix< T > Class Template Reference

#include <mex_matrix_separate.hpp>

Public Types

typedef Eigen::Map< Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > > base_t
 
typedef T scalar_t
 the scalar type
 

Public Member Functions

 real_matrix (size_t rows, size_t cols, mxArray *&output)
 output matrix (allocating) constructor More...
 
 real_matrix (mxArray const *input)
 input matrix constructor More...
 

Detailed Description

template<class T>
class NiHu::mex::real_matrix< T >

brief Container class of a real matrix stored in Matlab format

Template Parameters
thereal type (float double etc)

Definition at line 133 of file mex_matrix_separate.hpp.

Constructor & Destructor Documentation

◆ real_matrix() [1/2]

template<class T >
NiHu::mex::real_matrix< T >::real_matrix ( size_t  rows,
size_t  cols,
mxArray *&  output 
)
inline

output matrix (allocating) constructor

used when a matrix created in C++ is passed to Matlab

Parameters
[in]rowsnumber of rows
[in]colsnumber of columns
[out]outputpointer to the result matrix is copied here

Definition at line 148 of file mex_matrix_separate.hpp.

◆ real_matrix() [2/2]

template<class T >
NiHu::mex::real_matrix< T >::real_matrix ( mxArray const *  input)
inline

input matrix constructor

used a Matlab-allocated matrix is read in C++

Parameters
[in]inputpointer to the native Matlab matrix format

Definition at line 159 of file mex_matrix_separate.hpp.


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