DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Namespaces | Macros | Functions
mexutils.h File Reference
#include <mex.h>
#include <mat.h>
#include "utlCoreMacro.h"
#include <typeinfo>
#include <stdlib.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <complex>
+ Include dependency graph for mexutils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 utl
 

Macros

#define MATLAB_MEX_FILE
 

Functions

bool utl::CheckField (const mxArray *pr_struct, const char *name)
 
bool utl::CheckSize (const mxArray *array, const int m, const int n)
 
template<typename T >
void utl::ConvertSpMatrix (mxArray *&matlab_mat, int K, int M, int n, int nzmax, const T *v, const int *r, const int *pB)
 
template<typename T >
mxArray * utl::Create4DImage (int h, int w, int V, int dim)
 
template<>
mxArray * utl::Create4DImage< double > (int h, int w, int V, int dim)
 
template<>
mxArray * utl::Create4DImage< float > (int h, int w, int V, int dim)
 
template<typename T >
void utl::CreateCopySparse (T *&alpha_v2, int *&alpha_r2, int *&alpha_pB2, int *&alpha_pE2, double *alpha_v, mwSize *alpha_r, mwSize *alpha_pB, mwSize *alpha_pE, int M)
 
template<typename T >
mxArray * utl::CreateImage (int h, int w, int V)
 
template<>
mxArray * utl::CreateImage< double > (int h, int w, int V)
 
template<>
mxArray * utl::CreateImage< float > (int h, int w, int V)
 
template<typename T >
mxArray * utl::CreateMatrix (int m, int n)
 
template<>
mxArray * utl::CreateMatrix< double > (int m, int n)
 
template<>
mxArray * utl::CreateMatrix< float > (int m, int n)
 
template<typename T >
mxArray * utl::CreateScalar ()
 
template<typename T >
void utl::DeleteCopySparse (T *&alpha_v2, int *&alpha_r2, int *&alpha_pB2, int *&alpha_pE2, double *alpha_v, mwSize *alpha_r)
 
mxArray * utl::GetArrayStruct (const mxArray *pr_struct, const char *name)
 
template<typename T >
utl::GetScalarStruct (const mxArray *pr_struct, const char *name)
 
template<typename T >
utl::GetScalarStructDef (const mxArray *pr_struct, const char *name, const T def)
 
template<>
std::string utl::GetScalarStructDef (const mxArray *pr_struct, const char *name, const std::string def)
 
void utl::GetString (const mxArray *pr, std::string &str)
 
std::string utl::GetString (const mxArray *pr)
 
void utl::GetStringStruct (const mxArray *pr_struct, const char *name, char *field, const mwSize length)
 
template<typename T >
bool utl::mexCheckType (const mxArray *array)
 
template<>
bool utl::mexCheckType< bool > (const mxArray *array)
 
template<>
bool utl::mexCheckType< double > (const mxArray *array)
 
template<>
bool utl::mexCheckType< float > (const mxArray *array)
 
template<>
bool utl::mexCheckType< int > (const mxArray *array)
 
template<>
bool utl::mexCheckType< std::complex< double > > (const mxArray *array)
 
template<>
bool utl::mexCheckType< std::complex< float > > (const mxArray *array)
 
template<class TMatrixType >
void utl::ReadMatFileToMatrix (const std::string fileName, const std::string varibleName, TMatrixType &matrix)
 
template<class TMatrixType >
void utl::SaveMatrixToMatFile (const TMatrixType &matrix, const int NumberRows, const int NumberColumns, const std::string fileName, const std::string varibleName)
 
void utl::super_flush (std::ostream &stream)
 

Detailed Description

Contains miscellaneous functions for mex files. utl functions for mex code. Some codes are from spams by Julien Mairal julie.nosp@m.n.ma.nosp@m.iral@.nosp@m.inri.nosp@m.a.fr.

Definition in file mexutils.h.

Macro Definition Documentation

#define MATLAB_MEX_FILE

Definition at line 21 of file mexutils.h.