#include <string.h>
#include "mex_utils.h"
#include "linalg.h"
Go to the source code of this file.
Functions | |
mxArray * | create_mex_double (double val) |
mxArray * | create_mex_string (const char *str) |
double | get_mex_double (const mxArray *arg) |
float | get_mex_float (const mxArray *arg) |
char * | get_mex_string (const mxArray *arg) |
bool | is_mex_fid (const mxArray *arg) |
bool | is_mex_matrix (mxArray *arg) |
bool | is_mex_scalar (const mxArray *arg) |
mxArray * | mex_array_to_mxarray (Array *a) |
convert libeegtools array to MxArray. | |
mxArray * | mex_int_array_to_mxarray (Array *a) |
convert libeegtools array to MxArray. | |
Array * | mex_mxarray_to_array (mxArray *mxa) |
convert MxArray to libeegtools array. | |
int | set_mex_field (mxArray *arg, const char *field_name, mxArray *value) |
mxArray* create_mex_double | ( | double | val | ) |
Definition at line 28 of file mex_utils.c.
mxArray* create_mex_string | ( | const char * | str | ) |
Definition at line 36 of file mex_utils.c.
double get_mex_double | ( | const mxArray * | arg | ) |
Definition at line 69 of file mex_utils.c.
float get_mex_float | ( | const mxArray * | arg | ) |
Definition at line 75 of file mex_utils.c.
char* get_mex_string | ( | const mxArray * | arg | ) |
Definition at line 43 of file mex_utils.c.
bool is_mex_fid | ( | const mxArray * | arg | ) |
Definition at line 99 of file mex_utils.c.
bool is_mex_matrix | ( | mxArray * | arg | ) |
Definition at line 105 of file mex_utils.c.
bool is_mex_scalar | ( | const mxArray * | arg | ) |
Definition at line 93 of file mex_utils.c.
mxArray* mex_array_to_mxarray | ( | Array * | a | ) |
convert libeegtools array to MxArray.
Everything must be double-precision.
Definition at line 142 of file mex_utils.c.
mxArray* mex_int_array_to_mxarray | ( | Array * | a | ) |
convert libeegtools array to MxArray.
Everything must be int-precision.
Definition at line 157 of file mex_utils.c.
Array* mex_mxarray_to_array | ( | mxArray * | mxa | ) |
convert MxArray to libeegtools array.
Everything must be double-precision.
Definition at line 114 of file mex_utils.c.
int set_mex_field | ( | mxArray * | arg, | |
const char * | field_name, | |||
mxArray * | value | |||
) |
Definition at line 82 of file mex_utils.c.