armamexc #
arma/mex interface using Matlab C API
More…
Functions #
Name | |
---|---|
template <class T > auto |
m2T_scalar(const mxArray * matlab_scalar) Convert Matlab mxArray to scalar of type T. |
template <class T > auto |
m2a_mat(const mxArray * matlab_mat, bool copy_aux_mem =false, bool strict =true) Convert matlab matrix to armadillo. |
template <typename T > auto |
a2m_mat(arma::Mat< T > const & arma_mat) Convert armadillo to matlab matrix. |
template <typename T > auto |
a2m_vec(arma::Col< T > const & arma_vec) Convert armadillo to matlab vector. |
Detailed Description #
Utilities for arma/mex interface using Matlab C API
Function Details #
m2T_scalar #
template <class T >
inline auto m2T_scalar(
const mxArray * matlab_scalar
)
Parameters:
- matlab_scalar matlab scalar
Template Parameters:
- T type
Return: scalar of type T
m2a_mat #
template <class T >
inline auto m2a_mat(
const mxArray * matlab_mat,
bool copy_aux_mem =false,
bool strict =true
)
Parameters:
- matlab_mat matlab matrix
- copy_aux_mem [optional] whether to copy auxiliary memory
- strict [optional] strictly enforce the above
Template Parameters:
- T type
Return: armadillo matrix of type T
a2m_mat #
template <typename T >
inline auto a2m_mat(
arma::Mat< T > const & arma_mat
)
Parameters:
- arma_mat armadillo matrix
Return: matlab matrix
a2m_vec #
template <typename T >
inline auto a2m_vec(
arma::Col< T > const & arma_vec
)
Parameters:
- arma_vec armadillo vector
Return: matlab vector
Updated on 19 May 2022 at 17:16:03 Eastern Daylight Time