NiHu  2.0
NiHu::mex::matrix< Scalar > Class Template Reference

Matlab mex matrix. More...

#include <mex_matrix_interleaved.hpp>

Public Types

typedef Scalar scalar_t
 
typedef Eigen::Map< Eigen::Matrix< scalar_t, Eigen::Dynamic, Eigen::Dynamic > > base_t
 

Public Member Functions

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

Detailed Description

template<class Scalar>
class NiHu::mex::matrix< Scalar >

Matlab mex matrix.

Definition at line 151 of file mex_matrix_interleaved.hpp.

Constructor & Destructor Documentation

◆ matrix() [1/2]

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

output matrix constructor

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

Parameters
[in]rowsnumber of rows
[in]colsnumber of columns
[out]outputthe mxArray that will be allocated

Definition at line 164 of file mex_matrix_interleaved.hpp.

◆ matrix() [2/2]

template<class Scalar >
NiHu::mex::matrix< Scalar >::matrix ( mxArray const *  input)
inline

input matrix constructor

used when an input matrix is received from Matlab

Parameters
[in]inputthe Matlab pointer to the matrix

Definition at line 183 of file mex_matrix_interleaved.hpp.


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