Go to the source code of this file.
Macros | |
#define | MX_HAS_INTERLEAVED_COMPLEX 0 |
#define | MXARRAY_TYPEDEFS_ONLY |
#define | mxAssert(expr, msg) |
#define | mxAssertS(expr, msg) |
Functions | |
int | mexAtExit (void(*f)(void)) |
int | mexCallMATLAB (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname) |
mxArray * | mexCallMATLABWithTrap (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname) |
void | mexErrMsgIdAndTxt (const char *id, const char *s,...) |
void | mexErrMsgTxt (const char *s) |
int | mexEvalString (const char *s) |
mxArray * | mexEvalStringWithTrap (const char *s) |
void | mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) |
const char * | mexFunctionName (void) |
const mxArray * | mexGet (double handle, const char *property) |
mxArray * | mexGetVariable (const char *space, const char *name) |
const mxArray * | mexGetVariablePtr (const char *space, const char *name) |
int | mexIsGlobal (const mxArray *ptr) |
int | mexIsLocked (void) |
void | mexLock (void) |
void | mexMakeArrayPersistent (mxArray *ptr) |
void | mexMakeMemoryPersistent (void *ptr) |
int | mexPrintf (const char *fmt,...) |
int | mexPutVariable (const char *space, const char *name, const mxArray *ptr) |
int | mexSet (double handle, const char *property, mxArray *val) |
void | mexSetTrapFlag (int flag) |
void | mexUnlock (void) |
void | mexWarnMsgIdAndTxt (const char *id, const char *s,...) |
void | mexWarnMsgTxt (const char *s) |
int | mxAddField (mxArray *ptr, const char *key) |
char * | mxArrayToString (const mxArray *ptr) |
mwIndex | mxCalcSingleSubscript (const mxArray *ptr, mwSize nsubs, mwIndex *subs) |
void * | mxCalloc (size_t n, size_t size) |
mxArray * | mxCreateCellArray (mwSize ndims, const mwSize *dims) |
mxArray * | mxCreateCellMatrix (mwSize m, mwSize n) |
mxArray * | mxCreateCharArray (mwSize ndims, const mwSize *dims) |
mxArray * | mxCreateCharMatrixFromStrings (mwSize m, const char **str) |
mxArray * | mxCreateDoubleMatrix (mwSize nr, mwSize nc, mxComplexity flag) |
mxArray * | mxCreateDoubleScalar (double val) |
mxArray * | mxCreateLogicalArray (mwSize ndims, const mwSize *dims) |
mxArray * | mxCreateLogicalMatrix (mwSize m, mwSize n) |
mxArray * | mxCreateLogicalScalar (mxLogical val) |
mxArray * | mxCreateNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
mxArray * | mxCreateNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
mxArray * | mxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag) |
mxArray * | mxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax) |
mxArray * | mxCreateString (const char *str) |
mxArray * | mxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) |
mxArray * | mxCreateStructMatrix (mwSize rows, mwSize cols, int num_keys, const char **keys) |
mxArray * | mxCreateUninitNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
mxArray * | mxCreateUninitNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
void | mxDestroyArray (mxArray *v) |
mxArray * | mxDuplicateArray (const mxArray *v) |
void | mxFree (void *ptr) |
mxArray * | mxGetCell (const mxArray *ptr, mwIndex idx) |
mxChar * | mxGetChars (const mxArray *ptr) |
mxClassID | mxGetClassID (const mxArray *ptr) |
const char * | mxGetClassName (const mxArray *ptr) |
void * | mxGetData (const mxArray *ptr) |
const mwSize * | mxGetDimensions (const mxArray *ptr) |
size_t | mxGetElementSize (const mxArray *ptr) |
double | mxGetEps (void) |
mxArray * | mxGetField (const mxArray *ptr, mwIndex index, const char *key) |
mxArray * | mxGetFieldByNumber (const mxArray *ptr, mwIndex index, int key_num) |
const char * | mxGetFieldNameByNumber (const mxArray *ptr, int key_num) |
int | mxGetFieldNumber (const mxArray *ptr, const char *key) |
void * | mxGetImagData (const mxArray *ptr) |
double | mxGetInf (void) |
mwIndex * | mxGetIr (const mxArray *ptr) |
mwIndex * | mxGetJc (const mxArray *ptr) |
mxLogical * | mxGetLogicals (const mxArray *ptr) |
size_t | mxGetM (const mxArray *ptr) |
size_t | mxGetN (const mxArray *ptr) |
double | mxGetNaN (void) |
mwSize | mxGetNumberOfDimensions (const mxArray *ptr) |
size_t | mxGetNumberOfElements (const mxArray *ptr) |
int | mxGetNumberOfFields (const mxArray *ptr) |
mwSize | mxGetNzmax (const mxArray *ptr) |
double * | mxGetPi (const mxArray *ptr) |
double * | mxGetPr (const mxArray *ptr) |
mxArray * | mxGetProperty (const mxArray *ptr, mwIndex idx, const char *property_name) |
double | mxGetScalar (const mxArray *ptr) |
int | mxGetString (const mxArray *ptr, char *buf, mwSize buflen) |
bool | mxIsCell (const mxArray *ptr) |
bool | mxIsChar (const mxArray *ptr) |
bool | mxIsClass (const mxArray *ptr, const char *name) |
bool | mxIsComplex (const mxArray *ptr) |
bool | mxIsDouble (const mxArray *ptr) |
bool | mxIsEmpty (const mxArray *ptr) |
bool | mxIsFinite (double v) |
bool | mxIsFromGlobalWS (const mxArray *ptr) |
bool | mxIsFunctionHandle (const mxArray *ptr) |
bool | mxIsInf (double v) |
bool | mxIsInt16 (const mxArray *ptr) |
bool | mxIsInt32 (const mxArray *ptr) |
bool | mxIsInt64 (const mxArray *ptr) |
bool | mxIsInt8 (const mxArray *ptr) |
bool | mxIsLogical (const mxArray *ptr) |
bool | mxIsLogicalScalar (const mxArray *ptr) |
bool | mxIsLogicalScalarTrue (const mxArray *ptr) |
bool | mxIsNaN (double v) |
bool | mxIsNumeric (const mxArray *ptr) |
bool | mxIsScalar (const mxArray *ptr) |
bool | mxIsSingle (const mxArray *ptr) |
bool | mxIsSparse (const mxArray *ptr) |
bool | mxIsStruct (const mxArray *ptr) |
bool | mxIsUint16 (const mxArray *ptr) |
bool | mxIsUint32 (const mxArray *ptr) |
bool | mxIsUint64 (const mxArray *ptr) |
bool | mxIsUint8 (const mxArray *ptr) |
void * | mxMalloc (size_t n) |
void * | mxRealloc (void *ptr, size_t size) |
void | mxRemoveField (mxArray *ptr, int key_num) |
void | mxSetCell (mxArray *ptr, mwIndex idx, mxArray *val) |
void | mxSetClassName (mxArray *ptr, const char *name) |
void | mxSetData (mxArray *ptr, void *data) |
int | mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims) |
void | mxSetField (mxArray *ptr, mwIndex index, const char *key, mxArray *val) |
void | mxSetFieldByNumber (mxArray *ptr, mwIndex index, int key_num, mxArray *val) |
void | mxSetImagData (mxArray *ptr, void *pi) |
void | mxSetIr (mxArray *ptr, mwIndex *ir) |
void | mxSetJc (mxArray *ptr, mwIndex *jc) |
void | mxSetM (mxArray *ptr, mwSize M) |
void | mxSetN (mxArray *ptr, mwSize N) |
void | mxSetNzmax (mxArray *ptr, mwSize nzmax) |
void | mxSetPi (mxArray *ptr, double *pi) |
void | mxSetPr (mxArray *ptr, double *pr) |
void | mxSetProperty (mxArray *ptr, mwIndex idx, const char *property_name, const mxArray *property_value) |
#define MX_HAS_INTERLEAVED_COMPLEX 0 |
Definition at line 66 of file mexproto.h.
#define MXARRAY_TYPEDEFS_ONLY |
Definition at line 69 of file mexproto.h.
#define mxAssert | ( | expr, | |
msg | |||
) |
Definition at line 414 of file mexproto.h.
#define mxAssertS | ( | expr, | |
msg | |||
) |
Definition at line 415 of file mexproto.h.
int mexAtExit | ( | void(*)(void) | f | ) |
Definition at line 4988 of file mex.cc.
References octave_mex_function::atexit(), f, and mex_context.
int mexCallMATLAB | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 4579 of file mex.cc.
Referenced by mexCallMATLABWithTrap().
mxArray* mexCallMATLABWithTrap | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 4646 of file mex.cc.
References mex_context, mexCallMATLAB(), mexSetTrapFlag(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), and mxSetFieldByNumber().
void mexErrMsgIdAndTxt | ( | const char * | id, |
const char * | s, | ||
... | |||
) |
Definition at line 4767 of file mex.cc.
References error(), len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and verror_with_id().
void mexErrMsgTxt | ( | const char * | s | ) |
Definition at line 4744 of file mex.cc.
References error(), len, mexFunctionName(), and strlen().
Referenced by mexGetVariable(), mexPutVariable(), and mxIsFromGlobalWS().
int mexEvalString | ( | const char * | s | ) |
Definition at line 4677 of file mex.cc.
References __get_interpreter__().
mxArray* mexEvalStringWithTrap | ( | const char * | s | ) |
Definition at line 4706 of file mex.cc.
References __get_interpreter__(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), and mxSetFieldByNumber().
const char* mexFunctionName | ( | void | ) |
Definition at line 4544 of file mex.cc.
References mex_context.
Referenced by mexErrMsgIdAndTxt(), mexErrMsgTxt(), mexIsLocked(), mexLock(), mexUnlock(), and mexWarnMsgIdAndTxt().
const mxArray* mexGet | ( | double | handle, |
const char * | property | ||
) |
Definition at line 5015 of file mex.cc.
References octave_value::as_mxArray(), get_property_from_handle(), octave_value::is_defined(), and m.
mxArray* mexGetVariable | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 4842 of file mex.cc.
References __get_interpreter__(), octave_value::is_defined(), mex_context, mexErrMsgTxt(), mxArray::set_name(), and strcmp().
Referenced by mexGetVariablePtr().
const mxArray* mexGetVariablePtr | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 4893 of file mex.cc.
References mexGetVariable().
int mexIsGlobal | ( | const mxArray * | ptr | ) |
Definition at line 5029 of file mex.cc.
References mxIsFromGlobalWS().
int mexIsLocked | ( | void | ) |
Definition at line 5035 of file mex.cc.
References __get_interpreter__(), mex_context, and mexFunctionName().
void mexLock | ( | void | ) |
Definition at line 5054 of file mex.cc.
References __get_interpreter__(), mex_context, mex_lock_count, and mexFunctionName().
int mexPrintf | ( | const char * | fmt, |
... | |||
) |
Definition at line 4831 of file mex.cc.
References octave_stdout, and octave::vformat().
int mexPutVariable | ( | const char * | space, |
const char * | name, | ||
const mxArray * | ptr | ||
) |
Definition at line 4899 of file mex.cc.
References __get_interpreter__(), mxArray::as_octave_value(), mxArray::get_name(), mexErrMsgTxt(), and strcmp().
int mexSet | ( | double | handle, |
const char * | property, | ||
mxArray * | val | ||
) |
Definition at line 5072 of file mex.cc.
References mxArray::as_octave_value(), and set_property_in_handle().
void mexSetTrapFlag | ( | int | flag | ) |
Definition at line 4670 of file mex.cc.
References mex_context.
Referenced by mexCallMATLABWithTrap().
void mexUnlock | ( | void | ) |
Definition at line 5093 of file mex.cc.
References __get_interpreter__(), mex_context, mex_lock_count, and mexFunctionName().
void mexWarnMsgIdAndTxt | ( | const char * | id, |
const char * | s, | ||
... | |||
) |
Definition at line 4812 of file mex.cc.
References len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and vwarning_with_id().
void mexWarnMsgTxt | ( | const char * | s | ) |
int mxAddField | ( | mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 4381 of file mex.cc.
References mxArray::add_field().
char* mxArrayToString | ( | const mxArray * | ptr | ) |
Definition at line 4443 of file mex.cc.
References mxArray::array_to_string().
Definition at line 4449 of file mex.cc.
References mxArray::calc_single_subscript().
void* mxCalloc | ( | size_t | n, |
size_t | size | ||
) |
Definition at line 3650 of file mex.cc.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray* mxCreateDoubleMatrix | ( | mwSize | nr, |
mwSize | nc, | ||
mxComplexity | flag | ||
) |
mxArray* mxCreateNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
mxArray* mxCreateNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
mxArray* mxCreateSparse | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax, | ||
mxComplexity | flag | ||
) |
mxArray* mxCreateString | ( | const char * | str | ) |
Definition at line 3830 of file mex.cc.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
Definition at line 3857 of file mex.cc.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
mxArray* mxCreateUninitNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
mxArray* mxCreateUninitNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
void mxDestroyArray | ( | mxArray * | v | ) |
Definition at line 3872 of file mex.cc.
References mex_context.
void mxFree | ( | void * | ptr | ) |
Definition at line 3616 of file mex.cc.
References mex_context.
Referenced by mxArray::~mxArray(), and mxArray::set_name().
Definition at line 4331 of file mex.cc.
References mxArray::get_cell().
Definition at line 4096 of file mex.cc.
References mxArray::get_data(), and mxIsChar().
Definition at line 4299 of file mex.cc.
References mxArray::get_class_id().
const char* mxGetClassName | ( | const mxArray * | ptr | ) |
Definition at line 4305 of file mex.cc.
References mxArray::get_class_name().
void* mxGetData | ( | const mxArray * | ptr | ) |
Definition at line 4111 of file mex.cc.
References mxArray::get_data().
Definition at line 4044 of file mex.cc.
References mxArray::get_dimensions().
size_t mxGetElementSize | ( | const mxArray * | ptr | ) |
Definition at line 4455 of file mex.cc.
References mxArray::get_element_size().
Definition at line 4393 of file mex.cc.
References mxGetFieldByNumber(), and mxGetFieldNumber().
Definition at line 4400 of file mex.cc.
References mxArray::get_field_by_number().
Referenced by mxGetField().
const char* mxGetFieldNameByNumber | ( | const mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 4425 of file mex.cc.
References mxArray::get_field_name_by_number().
int mxGetFieldNumber | ( | const mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 4431 of file mex.cc.
References mxArray::get_field_number().
Referenced by mxGetField(), and mxSetField().
void* mxGetImagData | ( | const mxArray * | ptr | ) |
Definition at line 4123 of file mex.cc.
References mxArray::get_imag_data().
double mxGetInf | ( | void | ) |
Definition at line 3584 of file mex.cc.
References lo_ieee_inf_value().
Definition at line 4344 of file mex.cc.
References mxArray::get_ir().
Definition at line 4350 of file mex.cc.
References mxArray::get_jc().
Definition at line 4105 of file mex.cc.
References mxArray::get_data().
size_t mxGetM | ( | const mxArray * | ptr | ) |
Definition at line 4032 of file mex.cc.
References mxArray::get_m().
size_t mxGetN | ( | const mxArray * | ptr | ) |
Definition at line 4038 of file mex.cc.
References mxArray::get_n().
double mxGetNaN | ( | void | ) |
Definition at line 3590 of file mex.cc.
References lo_ieee_nan_value().
Definition at line 4050 of file mex.cc.
References mxArray::get_number_of_dimensions().
size_t mxGetNumberOfElements | ( | const mxArray * | ptr | ) |
Definition at line 4056 of file mex.cc.
References mxArray::get_number_of_elements().
int mxGetNumberOfFields | ( | const mxArray * | ptr | ) |
Definition at line 4419 of file mex.cc.
References mxArray::get_number_of_fields().
Definition at line 4356 of file mex.cc.
References mxArray::get_nzmax().
double* mxGetPi | ( | const mxArray * | ptr | ) |
Definition at line 4117 of file mex.cc.
References mxArray::get_imag_data().
double* mxGetPr | ( | const mxArray * | ptr | ) |
Definition at line 4084 of file mex.cc.
References mxArray::get_data().
Definition at line 4324 of file mex.cc.
References mxArray::get_property().
double mxGetScalar | ( | const mxArray * | ptr | ) |
Definition at line 4090 of file mex.cc.
References mxArray::get_scalar().
Definition at line 4437 of file mex.cc.
References mxArray::get_string().
bool mxIsCell | ( | const mxArray * | ptr | ) |
Definition at line 3880 of file mex.cc.
References mxArray::iscell().
bool mxIsChar | ( | const mxArray * | ptr | ) |
bool mxIsClass | ( | const mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 3892 of file mex.cc.
References mxArray::is_class().
bool mxIsComplex | ( | const mxArray * | ptr | ) |
Definition at line 3898 of file mex.cc.
References mxArray::is_complex().
bool mxIsDouble | ( | const mxArray * | ptr | ) |
Definition at line 3904 of file mex.cc.
References mxArray::is_double().
bool mxIsEmpty | ( | const mxArray * | ptr | ) |
Definition at line 4009 of file mex.cc.
References mxArray::isempty().
bool mxIsFinite | ( | double | v | ) |
Definition at line 3560 of file mex.cc.
References lo_ieee_isfinite.
bool mxIsFromGlobalWS | ( | const mxArray * | ptr | ) |
bool mxIsFunctionHandle | ( | const mxArray * | ptr | ) |
Definition at line 3910 of file mex.cc.
References mxArray::is_function_handle().
bool mxIsInf | ( | double | v | ) |
Definition at line 3566 of file mex.cc.
References lo_ieee_isinf.
bool mxIsInt16 | ( | const mxArray * | ptr | ) |
Definition at line 3916 of file mex.cc.
References mxArray::is_int16().
bool mxIsInt32 | ( | const mxArray * | ptr | ) |
Definition at line 3922 of file mex.cc.
References mxArray::is_int32().
bool mxIsInt64 | ( | const mxArray * | ptr | ) |
Definition at line 3928 of file mex.cc.
References mxArray::is_int64().
bool mxIsInt8 | ( | const mxArray * | ptr | ) |
Definition at line 3934 of file mex.cc.
References mxArray::is_int8().
bool mxIsLogical | ( | const mxArray * | ptr | ) |
Definition at line 3940 of file mex.cc.
References mxArray::is_logical().
bool mxIsLogicalScalar | ( | const mxArray * | ptr | ) |
Definition at line 3995 of file mex.cc.
References mxArray::is_logical_scalar().
bool mxIsLogicalScalarTrue | ( | const mxArray * | ptr | ) |
Definition at line 4002 of file mex.cc.
References mxArray::is_logical_scalar_true().
bool mxIsNaN | ( | double | v | ) |
Definition at line 3572 of file mex.cc.
References lo_ieee_isnan.
bool mxIsNumeric | ( | const mxArray * | ptr | ) |
Definition at line 3946 of file mex.cc.
References mxArray::is_numeric().
bool mxIsScalar | ( | const mxArray * | ptr | ) |
Definition at line 4015 of file mex.cc.
References mxArray::is_scalar().
bool mxIsSingle | ( | const mxArray * | ptr | ) |
Definition at line 3952 of file mex.cc.
References mxArray::is_single().
bool mxIsSparse | ( | const mxArray * | ptr | ) |
Definition at line 3958 of file mex.cc.
References mxArray::is_sparse().
bool mxIsStruct | ( | const mxArray * | ptr | ) |
Definition at line 3964 of file mex.cc.
References mxArray::is_struct().
bool mxIsUint16 | ( | const mxArray * | ptr | ) |
Definition at line 3970 of file mex.cc.
References mxArray::is_uint16().
bool mxIsUint32 | ( | const mxArray * | ptr | ) |
Definition at line 3976 of file mex.cc.
References mxArray::is_uint32().
bool mxIsUint64 | ( | const mxArray * | ptr | ) |
Definition at line 3982 of file mex.cc.
References mxArray::is_uint64().
bool mxIsUint8 | ( | const mxArray * | ptr | ) |
Definition at line 3988 of file mex.cc.
References mxArray::is_uint8().
void* mxMalloc | ( | size_t | n | ) |
void* mxRealloc | ( | void * | ptr, |
size_t | size | ||
) |
void mxRemoveField | ( | mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 4387 of file mex.cc.
References mxArray::remove_field().
Definition at line 4337 of file mex.cc.
References mxArray::set_cell().
void mxSetClassName | ( | mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 4311 of file mex.cc.
References mxArray::set_class_name().
void mxSetData | ( | mxArray * | ptr, |
void * | data | ||
) |
Definition at line 4208 of file mex.cc.
References mxArray::set_data().
Definition at line 4075 of file mex.cc.
References mxArray::set_dimensions().
Definition at line 4406 of file mex.cc.
References mxGetFieldNumber(), and mxSetFieldByNumber().
Definition at line 4413 of file mex.cc.
References mxArray::set_field_by_number().
Referenced by mexCallMATLABWithTrap(), mexEvalStringWithTrap(), and mxSetField().
Definition at line 4362 of file mex.cc.
References mxArray::set_ir().
Definition at line 4368 of file mex.cc.
References mxArray::set_jc().
Definition at line 4063 of file mex.cc.
References m, and mxArray::set_m().
Definition at line 4069 of file mex.cc.
References n, and mxArray::set_n().
Definition at line 4374 of file mex.cc.
References mxArray::set_nzmax().
void mxSetPr | ( | mxArray * | ptr, |
double * | pr | ||
) |
Definition at line 4202 of file mex.cc.
References mxArray::set_data().