#include "octave-config.h"
#include <stdlib.h>
#include <stdbool.h>
#include "mxarray.h"
Go to the source code of this file.
Macros | |
#define | MXARRAY_TYPEDEFS_ONLY |
#define | mxAssert(expr, msg) |
#define | mxAssertS(expr, msg) |
Functions | |
OCTINTERP_API int | mexAtExit (void(*f)(void)) |
OCTINTERP_API int | mexCallMATLAB (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname) |
OCTINTERP_API mxArray * | mexCallMATLABWithTrap (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname) |
OCTINTERP_API void | mexErrMsgIdAndTxt (const char *id, const char *s,...) |
OCTINTERP_API void | mexErrMsgTxt (const char *s) |
OCTINTERP_API int | mexEvalString (const char *s) |
OCTINTERP_API mxArray * | mexEvalStringWithTrap (const char *s) |
OCTINTERP_API const char * | mexFunctionName (void) |
OCTINTERP_API const mxArray * | mexGet (double handle, const char *property) |
OCTINTERP_API mxArray * | mexGetVariable (const char *space, const char *name) |
OCTINTERP_API const mxArray * | mexGetVariablePtr (const char *space, const char *name) |
OCTINTERP_API int | mexIsGlobal (const mxArray *ptr) |
OCTINTERP_API int | mexIsLocked (void) |
OCTINTERP_API void | mexLock (void) |
OCTINTERP_API void | mexMakeArrayPersistent (mxArray *ptr) |
OCTINTERP_API void | mexMakeMemoryPersistent (void *ptr) |
OCTINTERP_API int | mexPrintf (const char *fmt,...) |
OCTINTERP_API int | mexPutVariable (const char *space, const char *name, const mxArray *ptr) |
OCTINTERP_API int | mexSet (double handle, const char *property, mxArray *val) |
OCTINTERP_API void | mexSetTrapFlag (int flag) |
OCTINTERP_API void | mexUnlock (void) |
OCTINTERP_API void | mexWarnMsgIdAndTxt (const char *id, const char *s,...) |
OCTINTERP_API void | mexWarnMsgTxt (const char *s) |
OCTINTERP_API int | mxAddField (mxArray *ptr, const char *key) |
OCTINTERP_API char * | mxArrayToString (const mxArray *ptr) |
OCTINTERP_API mwIndex | mxCalcSingleSubscript (const mxArray *ptr, mwSize nsubs, mwIndex *subs) |
OCTINTERP_API void * | mxCalloc (size_t n, size_t size) |
OCTINTERP_API mxArray * | mxCreateCellArray (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateCellMatrix (mwSize m, mwSize n) |
OCTINTERP_API mxArray * | mxCreateCharArray (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateCharMatrixFromStrings (mwSize m, const char **str) |
OCTINTERP_API mxArray * | mxCreateDoubleMatrix (mwSize nr, mwSize nc, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateDoubleScalar (double val) |
OCTINTERP_API mxArray * | mxCreateLogicalArray (mwSize ndims, const mwSize *dims) |
OCTINTERP_API mxArray * | mxCreateLogicalMatrix (mwSize m, mwSize n) |
OCTINTERP_API mxArray * | mxCreateLogicalScalar (mxLogical val) |
OCTINTERP_API mxArray * | mxCreateNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax) |
OCTINTERP_API mxArray * | mxCreateString (const char *str) |
OCTINTERP_API mxArray * | mxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys) |
OCTINTERP_API mxArray * | mxCreateStructMatrix (mwSize rows, mwSize cols, int num_keys, const char **keys) |
OCTINTERP_API mxArray * | mxCreateUninitNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API mxArray * | mxCreateUninitNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag) |
OCTINTERP_API void | mxDestroyArray (mxArray *v) |
OCTINTERP_API mxArray * | mxDuplicateArray (const mxArray *v) |
OCTINTERP_API void | mxFree (void *ptr) |
OCTINTERP_API mxArray * | mxGetCell (const mxArray *ptr, mwIndex idx) |
OCTINTERP_API mxChar * | mxGetChars (const mxArray *ptr) |
OCTINTERP_API mxClassID | mxGetClassID (const mxArray *ptr) |
OCTINTERP_API const char * | mxGetClassName (const mxArray *ptr) |
OCTINTERP_API void * | mxGetData (const mxArray *ptr) |
OCTINTERP_API const mwSize * | mxGetDimensions (const mxArray *ptr) |
OCTINTERP_API size_t | mxGetElementSize (const mxArray *ptr) |
OCTINTERP_API double | mxGetEps (void) |
OCTINTERP_API mxArray * | mxGetField (const mxArray *ptr, mwIndex index, const char *key) |
OCTINTERP_API mxArray * | mxGetFieldByNumber (const mxArray *ptr, mwIndex index, int key_num) |
OCTINTERP_API const char * | mxGetFieldNameByNumber (const mxArray *ptr, int key_num) |
OCTINTERP_API int | mxGetFieldNumber (const mxArray *ptr, const char *key) |
OCTINTERP_API void * | mxGetImagData (const mxArray *ptr) |
OCTINTERP_API double | mxGetInf (void) |
OCTINTERP_API mwIndex * | mxGetIr (const mxArray *ptr) |
OCTINTERP_API mwIndex * | mxGetJc (const mxArray *ptr) |
OCTINTERP_API mxLogical * | mxGetLogicals (const mxArray *ptr) |
OCTINTERP_API size_t | mxGetM (const mxArray *ptr) |
OCTINTERP_API size_t | mxGetN (const mxArray *ptr) |
OCTINTERP_API double | mxGetNaN (void) |
OCTINTERP_API mwSize | mxGetNumberOfDimensions (const mxArray *ptr) |
OCTINTERP_API size_t | mxGetNumberOfElements (const mxArray *ptr) |
OCTINTERP_API int | mxGetNumberOfFields (const mxArray *ptr) |
OCTINTERP_API mwSize | mxGetNzmax (const mxArray *ptr) |
OCTINTERP_API double * | mxGetPi (const mxArray *ptr) |
OCTINTERP_API double * | mxGetPr (const mxArray *ptr) |
OCTINTERP_API mxArray * | mxGetProperty (const mxArray *ptr, mwIndex idx, const char *property_name) |
OCTINTERP_API double | mxGetScalar (const mxArray *ptr) |
OCTINTERP_API int | mxGetString (const mxArray *ptr, char *buf, mwSize buflen) |
OCTINTERP_API bool | mxIsCell (const mxArray *ptr) |
OCTINTERP_API bool | mxIsChar (const mxArray *ptr) |
OCTINTERP_API bool | mxIsClass (const mxArray *ptr, const char *name) |
OCTINTERP_API bool | mxIsComplex (const mxArray *ptr) |
OCTINTERP_API bool | mxIsDouble (const mxArray *ptr) |
OCTINTERP_API bool | mxIsEmpty (const mxArray *ptr) |
OCTINTERP_API bool | mxIsFinite (double v) |
OCTINTERP_API bool | mxIsFromGlobalWS (const mxArray *ptr) |
OCTINTERP_API bool | mxIsFunctionHandle (const mxArray *ptr) |
OCTINTERP_API bool | mxIsInf (double v) |
OCTINTERP_API bool | mxIsInt16 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsInt32 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsInt64 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsInt8 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsLogical (const mxArray *ptr) |
OCTINTERP_API bool | mxIsLogicalScalar (const mxArray *ptr) |
OCTINTERP_API bool | mxIsLogicalScalarTrue (const mxArray *ptr) |
OCTINTERP_API bool | mxIsNaN (double v) |
OCTINTERP_API bool | mxIsNumeric (const mxArray *ptr) |
OCTINTERP_API bool | mxIsScalar (const mxArray *ptr) |
OCTINTERP_API bool | mxIsSingle (const mxArray *ptr) |
OCTINTERP_API bool | mxIsSparse (const mxArray *ptr) |
OCTINTERP_API bool | mxIsStruct (const mxArray *ptr) |
OCTINTERP_API bool | mxIsUint16 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsUint32 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsUint64 (const mxArray *ptr) |
OCTINTERP_API bool | mxIsUint8 (const mxArray *ptr) |
OCTINTERP_API void * | mxMalloc (size_t n) |
OCTINTERP_API void * | mxRealloc (void *ptr, size_t size) |
OCTINTERP_API void | mxRemoveField (mxArray *ptr, int key_num) |
OCTINTERP_API void | mxSetCell (mxArray *ptr, mwIndex idx, mxArray *val) |
OCTINTERP_API void | mxSetClassName (mxArray *ptr, const char *name) |
OCTINTERP_API void | mxSetData (mxArray *ptr, void *data) |
OCTINTERP_API int | mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims) |
OCTINTERP_API void | mxSetField (mxArray *ptr, mwIndex index, const char *key, mxArray *val) |
OCTINTERP_API void | mxSetFieldByNumber (mxArray *ptr, mwIndex index, int key_num, mxArray *val) |
OCTINTERP_API void | mxSetImagData (mxArray *ptr, void *pi) |
OCTINTERP_API void | mxSetIr (mxArray *ptr, mwIndex *ir) |
OCTINTERP_API void | mxSetJc (mxArray *ptr, mwIndex *jc) |
OCTINTERP_API void | mxSetM (mxArray *ptr, mwSize M) |
OCTINTERP_API void | mxSetN (mxArray *ptr, mwSize N) |
OCTINTERP_API void | mxSetNzmax (mxArray *ptr, mwSize nzmax) |
OCTINTERP_API void | mxSetPi (mxArray *ptr, double *pi) |
OCTINTERP_API void | mxSetPr (mxArray *ptr, double *pr) |
OCTINTERP_API void | mxSetProperty (mxArray *ptr, mwIndex idx, const char *property_name, const mxArray *property_value) |
#define MXARRAY_TYPEDEFS_ONLY |
Definition at line 64 of file mexproto.h.
#define mxAssert | ( | expr, | |
msg | |||
) |
Definition at line 342 of file mexproto.h.
#define mxAssertS | ( | expr, | |
msg | |||
) |
Definition at line 343 of file mexproto.h.
OCTINTERP_API int mexAtExit | ( | void(*)(void) | f | ) |
Definition at line 3628 of file mex.cc.
References octave_mex_function::atexit(), mex::current_mex_function(), f, and mex_context.
OCTINTERP_API int mexCallMATLAB | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 3232 of file mex.cc.
References octave::__get_interpreter__(), mxArray::as_octave_value(), octave::feval(), octave::interpreter::get_evaluator(), octave::tree_evaluator::lvalue_list(), mex::make_value(), mex_context, octave::interpreter::recover_from_exception(), Array< T >::resize(), octave_value_list::resize(), retval, octave::tree_evaluator::set_lvalue_list(), and mex::trap_feval_error.
Referenced by mexCallMATLABWithTrap().
OCTINTERP_API mxArray* mexCallMATLABWithTrap | ( | int | nargout, |
mxArray * | argout[], | ||
int | nargin, | ||
mxArray * | argin[], | ||
const char * | fname | ||
) |
Definition at line 3311 of file mex.cc.
References mex_context, mexCallMATLAB(), mexSetTrapFlag(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), mxSetFieldByNumber(), and mex::trap_feval_error.
OCTINTERP_API void mexErrMsgIdAndTxt | ( | const char * | id, |
const char * | s, | ||
... | |||
) |
Definition at line 3432 of file mex.cc.
References error(), len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and verror_with_id().
OCTINTERP_API void mexErrMsgTxt | ( | const char * | s | ) |
Definition at line 3409 of file mex.cc.
References error(), len, mexFunctionName(), and strlen().
Referenced by mexGetVariable(), mexPutVariable(), and mxIsFromGlobalWS().
OCTINTERP_API int mexEvalString | ( | const char * | s | ) |
Definition at line 3342 of file mex.cc.
References octave::__get_interpreter__(), octave::interpreter::eval_string(), octave::interpreter::recover_from_exception(), and retval.
OCTINTERP_API mxArray* mexEvalStringWithTrap | ( | const char * | s | ) |
Definition at line 3371 of file mex.cc.
References octave::__get_interpreter__(), octave::interpreter::eval_string(), mxCreateCellMatrix(), mxCreateString(), mxCreateStructMatrix(), mxSetFieldByNumber(), and octave::interpreter::recover_from_exception().
OCTINTERP_API const char* mexFunctionName | ( | void | ) |
Definition at line 3226 of file mex.cc.
References mex::function_name(), and mex_context.
Referenced by mexErrMsgIdAndTxt(), mexErrMsgTxt(), mexIsLocked(), mexLock(), mexUnlock(), and mexWarnMsgIdAndTxt().
OCTINTERP_API const mxArray* mexGet | ( | double | handle, |
const char * | property | ||
) |
Definition at line 3643 of file mex.cc.
References octave_value::as_mxArray(), get_property_from_handle(), octave_value::is_defined(), and m.
OCTINTERP_API mxArray* mexGetVariable | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 3507 of file mex.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), octave::tree_evaluator::current_call_stack_frame_number(), octave::interpreter::get_evaluator(), octave::interpreter::global_varval(), octave::tree_evaluator::goto_base_frame(), octave_value::is_defined(), mex::make_value(), mex_context, mexErrMsgTxt(), name, octave::tree_evaluator::restore_frame(), retval, octave::string::strcmp(), and octave::interpreter::varval().
Referenced by mexGetVariablePtr().
OCTINTERP_API const mxArray* mexGetVariablePtr | ( | const char * | space, |
const char * | name | ||
) |
Definition at line 3558 of file mex.cc.
References mexGetVariable(), and name.
OCTINTERP_API int mexIsGlobal | ( | const mxArray * | ptr | ) |
Definition at line 3656 of file mex.cc.
References mxIsFromGlobalWS().
OCTINTERP_API int mexIsLocked | ( | void | ) |
Definition at line 3662 of file mex.cc.
References octave::__get_interpreter__(), mex_context, mexFunctionName(), octave::interpreter::mislocked(), and retval.
OCTINTERP_API void mexLock | ( | void | ) |
Definition at line 3681 of file mex.cc.
References octave::__get_interpreter__(), mex_context, mex_lock_count, mexFunctionName(), and octave::interpreter::mlock().
OCTINTERP_API void mexMakeArrayPersistent | ( | mxArray * | ptr | ) |
Definition at line 3616 of file mex.cc.
References maybe_unmark_array().
OCTINTERP_API void mexMakeMemoryPersistent | ( | void * | ptr | ) |
Definition at line 3622 of file mex.cc.
References maybe_unmark().
OCTINTERP_API int mexPrintf | ( | const char * | fmt, |
... | |||
) |
Definition at line 3496 of file mex.cc.
References octave_stdout, retval, and octave::vformat().
OCTINTERP_API int mexPutVariable | ( | const char * | space, |
const char * | name, | ||
const mxArray * | ptr | ||
) |
Definition at line 3564 of file mex.cc.
References octave::__get_interpreter__(), octave::action_container::add_method(), mxArray::as_octave_value(), octave::interpreter::assign(), octave::tree_evaluator::current_call_stack_frame_number(), octave::interpreter::get_evaluator(), mxArray::get_name(), octave::interpreter::global_assign(), octave::tree_evaluator::goto_base_frame(), mexErrMsgTxt(), name, octave::tree_evaluator::restore_frame(), and octave::string::strcmp().
OCTINTERP_API int mexSet | ( | double | handle, |
const char * | property, | ||
mxArray * | val | ||
) |
Definition at line 3699 of file mex.cc.
References mxArray::as_octave_value(), and set_property_in_handle().
OCTINTERP_API void mexSetTrapFlag | ( | int | flag | ) |
Definition at line 3335 of file mex.cc.
References mex_context, and mex::trap_feval_error.
Referenced by mexCallMATLABWithTrap().
OCTINTERP_API void mexUnlock | ( | void | ) |
Definition at line 3708 of file mex.cc.
References octave::__get_interpreter__(), mex_context, mex_lock_count, mexFunctionName(), and octave::interpreter::munlock().
OCTINTERP_API void mexWarnMsgIdAndTxt | ( | const char * | id, |
const char * | s, | ||
... | |||
) |
Definition at line 3477 of file mex.cc.
References len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and vwarning_with_id().
OCTINTERP_API void mexWarnMsgTxt | ( | const char * | s | ) |
OCTINTERP_API int mxAddField | ( | mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 3069 of file mex.cc.
References mxArray::add_field().
OCTINTERP_API char* mxArrayToString | ( | const mxArray * | ptr | ) |
Definition at line 3131 of file mex.cc.
References mxArray::array_to_string().
Definition at line 3137 of file mex.cc.
References mxArray::calc_single_subscript().
OCTINTERP_API void* mxCalloc | ( | size_t | n, |
size_t | size | ||
) |
Definition at line 2548 of file mex.cc.
References mex::calloc(), mex_context, and n.
Definition at line 2583 of file mex.cc.
References maybe_mark_array().
Definition at line 2589 of file mex.cc.
References m, maybe_mark_array(), and n.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
Definition at line 2595 of file mex.cc.
References maybe_mark_array(), and mxCHAR_CLASS.
Definition at line 2601 of file mex.cc.
References m, and maybe_mark_array().
OCTINTERP_API mxArray* mxCreateDoubleMatrix | ( | mwSize | nr, |
mwSize | nc, | ||
mxComplexity | flag | ||
) |
Definition at line 2607 of file mex.cc.
References m, maybe_mark_array(), mxDOUBLE_CLASS, and n.
OCTINTERP_API mxArray* mxCreateDoubleScalar | ( | double | val | ) |
Definition at line 2613 of file mex.cc.
References maybe_mark_array(), and mxDOUBLE_CLASS.
Definition at line 2619 of file mex.cc.
References maybe_mark_array(), and mxLOGICAL_CLASS.
Definition at line 2625 of file mex.cc.
References m, maybe_mark_array(), mxLOGICAL_CLASS, and n.
Definition at line 2631 of file mex.cc.
References maybe_mark_array(), and mxLOGICAL_CLASS.
OCTINTERP_API mxArray* mxCreateNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2637 of file mex.cc.
References maybe_mark_array().
OCTINTERP_API mxArray* mxCreateNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2644 of file mex.cc.
References m, maybe_mark_array(), and n.
OCTINTERP_API mxArray* mxCreateSparse | ( | mwSize | m, |
mwSize | n, | ||
mwSize | nzmax, | ||
mxComplexity | flag | ||
) |
Definition at line 2665 of file mex.cc.
References m, maybe_mark_array(), mxDOUBLE_CLASS, and n.
Definition at line 2671 of file mex.cc.
References m, maybe_mark_array(), mxLOGICAL_CLASS, and n.
OCTINTERP_API mxArray* mxCreateString | ( | const char * | str | ) |
Definition at line 2677 of file mex.cc.
References maybe_mark_array().
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
OCTINTERP_API mxArray* mxCreateStructArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 2683 of file mex.cc.
References maybe_mark_array().
OCTINTERP_API mxArray* mxCreateStructMatrix | ( | mwSize | rows, |
mwSize | cols, | ||
int | num_keys, | ||
const char ** | keys | ||
) |
Definition at line 2690 of file mex.cc.
References m, maybe_mark_array(), and n.
Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().
OCTINTERP_API mxArray* mxCreateUninitNumericArray | ( | mwSize | ndims, |
const mwSize * | dims, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2651 of file mex.cc.
References maybe_mark_array().
OCTINTERP_API mxArray* mxCreateUninitNumericMatrix | ( | mwSize | m, |
mwSize | n, | ||
mxClassID | class_id, | ||
mxComplexity | flag | ||
) |
Definition at line 2658 of file mex.cc.
References m, maybe_mark_array(), and n.
OCTINTERP_API void mxDestroyArray | ( | mxArray * | v | ) |
Definition at line 2704 of file mex.cc.
References mex::free_value(), and mex_context.
Definition at line 2697 of file mex.cc.
References mxArray::dup(), and maybe_mark_array().
OCTINTERP_API void mxFree | ( | void * | ptr | ) |
Definition at line 2567 of file mex.cc.
References mex::free(), mex_context, and xfree().
Referenced by mex::~mex(), mxArray::~mxArray(), mxArray_cell::~mxArray_cell(), mxArray_matlab::~mxArray_matlab(), mxArray_number::~mxArray_number(), mxArray_octave_value::~mxArray_octave_value(), mxArray_sparse::~mxArray_sparse(), mxArray_struct::~mxArray_struct(), mxArray_struct::add_field(), mxArray_octave_value::as_mxArray(), mxArray_struct::remove_field(), mxArray_matlab::set_class_name(), mxArray_matlab::set_dimensions(), and mxArray::set_name().
Definition at line 3019 of file mex.cc.
References mxArray::get_cell().
Definition at line 2934 of file mex.cc.
References mxArray::get_data(), and mxIsChar().
Definition at line 2987 of file mex.cc.
References mxArray::get_class_id().
OCTINTERP_API const char* mxGetClassName | ( | const mxArray * | ptr | ) |
Definition at line 2993 of file mex.cc.
References mxArray::get_class_name().
OCTINTERP_API void* mxGetData | ( | const mxArray * | ptr | ) |
Definition at line 2949 of file mex.cc.
References mxArray::get_data().
Definition at line 2876 of file mex.cc.
References mxArray::get_dimensions().
OCTINTERP_API size_t mxGetElementSize | ( | const mxArray * | ptr | ) |
Definition at line 3143 of file mex.cc.
References mxArray::get_element_size().
Definition at line 3081 of file mex.cc.
References mxGetFieldByNumber(), and mxGetFieldNumber().
Definition at line 3088 of file mex.cc.
References mxArray::get_field_by_number().
Referenced by mxGetField().
OCTINTERP_API const char* mxGetFieldNameByNumber | ( | const mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 3113 of file mex.cc.
References mxArray::get_field_name_by_number().
OCTINTERP_API int mxGetFieldNumber | ( | const mxArray * | ptr, |
const char * | key | ||
) |
Definition at line 3119 of file mex.cc.
References mxArray::get_field_number().
Referenced by mxGetField(), and mxSetField().
OCTINTERP_API void* mxGetImagData | ( | const mxArray * | ptr | ) |
Definition at line 2955 of file mex.cc.
References mxArray::get_imag_data().
OCTINTERP_API double mxGetInf | ( | void | ) |
Definition at line 2535 of file mex.cc.
References lo_ieee_inf_value().
Definition at line 3032 of file mex.cc.
References mxArray::get_ir().
Definition at line 3038 of file mex.cc.
References mxArray::get_jc().
Definition at line 2943 of file mex.cc.
References mxArray::get_data().
OCTINTERP_API size_t mxGetM | ( | const mxArray * | ptr | ) |
Definition at line 2864 of file mex.cc.
References mxArray::get_m().
OCTINTERP_API size_t mxGetN | ( | const mxArray * | ptr | ) |
Definition at line 2870 of file mex.cc.
References mxArray::get_n().
OCTINTERP_API double mxGetNaN | ( | void | ) |
Definition at line 2541 of file mex.cc.
References lo_ieee_nan_value().
Definition at line 2882 of file mex.cc.
References mxArray::get_number_of_dimensions().
OCTINTERP_API size_t mxGetNumberOfElements | ( | const mxArray * | ptr | ) |
Definition at line 2888 of file mex.cc.
References mxArray::get_number_of_elements().
OCTINTERP_API int mxGetNumberOfFields | ( | const mxArray * | ptr | ) |
Definition at line 3107 of file mex.cc.
References mxArray::get_number_of_fields().
Definition at line 3044 of file mex.cc.
References mxArray::get_nzmax().
OCTINTERP_API double* mxGetPi | ( | const mxArray * | ptr | ) |
Definition at line 2922 of file mex.cc.
References mxArray::get_imag_data().
OCTINTERP_API double* mxGetPr | ( | const mxArray * | ptr | ) |
Definition at line 2916 of file mex.cc.
References mxArray::get_data().
OCTINTERP_API mxArray* mxGetProperty | ( | const mxArray * | ptr, |
mwIndex | idx, | ||
const char * | property_name | ||
) |
Definition at line 3012 of file mex.cc.
References mxArray::get_property().
OCTINTERP_API double mxGetScalar | ( | const mxArray * | ptr | ) |
Definition at line 2928 of file mex.cc.
References mxArray::get_scalar().
Definition at line 3125 of file mex.cc.
References mxArray::get_string().
OCTINTERP_API bool mxIsCell | ( | const mxArray * | ptr | ) |
Definition at line 2712 of file mex.cc.
References mxArray::iscell().
OCTINTERP_API bool mxIsChar | ( | const mxArray * | ptr | ) |
OCTINTERP_API bool mxIsClass | ( | const mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 2724 of file mex.cc.
References mxArray::is_class(), and name.
OCTINTERP_API bool mxIsComplex | ( | const mxArray * | ptr | ) |
Definition at line 2730 of file mex.cc.
References mxArray::is_complex().
OCTINTERP_API bool mxIsDouble | ( | const mxArray * | ptr | ) |
Definition at line 2736 of file mex.cc.
References mxArray::is_double().
OCTINTERP_API bool mxIsEmpty | ( | const mxArray * | ptr | ) |
Definition at line 2841 of file mex.cc.
References mxArray::isempty().
OCTINTERP_API bool mxIsFinite | ( | double | v | ) |
Definition at line 2511 of file mex.cc.
References lo_ieee_finite.
OCTINTERP_API bool mxIsFromGlobalWS | ( | const mxArray * | ptr | ) |
OCTINTERP_API bool mxIsFunctionHandle | ( | const mxArray * | ptr | ) |
Definition at line 2742 of file mex.cc.
References mxArray::is_function_handle().
OCTINTERP_API bool mxIsInf | ( | double | v | ) |
Definition at line 2517 of file mex.cc.
References lo_ieee_isinf.
OCTINTERP_API bool mxIsInt16 | ( | const mxArray * | ptr | ) |
Definition at line 2748 of file mex.cc.
References mxArray::is_int16().
OCTINTERP_API bool mxIsInt32 | ( | const mxArray * | ptr | ) |
Definition at line 2754 of file mex.cc.
References mxArray::is_int32().
OCTINTERP_API bool mxIsInt64 | ( | const mxArray * | ptr | ) |
Definition at line 2760 of file mex.cc.
References mxArray::is_int64().
OCTINTERP_API bool mxIsInt8 | ( | const mxArray * | ptr | ) |
Definition at line 2766 of file mex.cc.
References mxArray::is_int8().
OCTINTERP_API bool mxIsLogical | ( | const mxArray * | ptr | ) |
Definition at line 2772 of file mex.cc.
References mxArray::is_logical().
OCTINTERP_API bool mxIsLogicalScalar | ( | const mxArray * | ptr | ) |
Definition at line 2827 of file mex.cc.
References mxArray::is_logical_scalar().
OCTINTERP_API bool mxIsLogicalScalarTrue | ( | const mxArray * | ptr | ) |
Definition at line 2834 of file mex.cc.
References mxArray::is_logical_scalar_true().
OCTINTERP_API bool mxIsNaN | ( | double | v | ) |
Definition at line 2523 of file mex.cc.
References lo_ieee_isnan.
OCTINTERP_API bool mxIsNumeric | ( | const mxArray * | ptr | ) |
Definition at line 2778 of file mex.cc.
References mxArray::is_numeric().
OCTINTERP_API bool mxIsScalar | ( | const mxArray * | ptr | ) |
Definition at line 2847 of file mex.cc.
References mxArray::is_scalar().
OCTINTERP_API bool mxIsSingle | ( | const mxArray * | ptr | ) |
Definition at line 2784 of file mex.cc.
References mxArray::is_single().
OCTINTERP_API bool mxIsSparse | ( | const mxArray * | ptr | ) |
Definition at line 2790 of file mex.cc.
References mxArray::is_sparse().
OCTINTERP_API bool mxIsStruct | ( | const mxArray * | ptr | ) |
Definition at line 2796 of file mex.cc.
References mxArray::is_struct().
OCTINTERP_API bool mxIsUint16 | ( | const mxArray * | ptr | ) |
Definition at line 2802 of file mex.cc.
References mxArray::is_uint16().
OCTINTERP_API bool mxIsUint32 | ( | const mxArray * | ptr | ) |
Definition at line 2808 of file mex.cc.
References mxArray::is_uint32().
OCTINTERP_API bool mxIsUint64 | ( | const mxArray * | ptr | ) |
Definition at line 2814 of file mex.cc.
References mxArray::is_uint64().
OCTINTERP_API bool mxIsUint8 | ( | const mxArray * | ptr | ) |
Definition at line 2820 of file mex.cc.
References mxArray::is_uint8().
OCTINTERP_API void* mxMalloc | ( | size_t | n | ) |
Definition at line 2554 of file mex.cc.
References mex::malloc(), malloc(), mex_context, and n.
OCTINTERP_API void* mxRealloc | ( | void * | ptr, |
size_t | size | ||
) |
Definition at line 2560 of file mex.cc.
References mex_context, and mex::realloc().
Referenced by mxArray_struct::add_field().
OCTINTERP_API void mxRemoveField | ( | mxArray * | ptr, |
int | key_num | ||
) |
Definition at line 3075 of file mex.cc.
References mxArray::remove_field().
Definition at line 3025 of file mex.cc.
References mxArray::set_cell().
OCTINTERP_API void mxSetClassName | ( | mxArray * | ptr, |
const char * | name | ||
) |
Definition at line 2999 of file mex.cc.
References name, and mxArray::set_class_name().
OCTINTERP_API void mxSetData | ( | mxArray * | ptr, |
void * | data | ||
) |
Definition at line 2974 of file mex.cc.
References maybe_unmark(), and mxArray::set_data().
Definition at line 2907 of file mex.cc.
References maybe_unmark(), and mxArray::set_dimensions().
Definition at line 3094 of file mex.cc.
References mxGetFieldNumber(), and mxSetFieldByNumber().
Definition at line 3101 of file mex.cc.
References mxArray::set_field_by_number().
Referenced by mexCallMATLABWithTrap(), mexEvalStringWithTrap(), and mxSetField().
OCTINTERP_API void mxSetImagData | ( | mxArray * | ptr, |
void * | pi | ||
) |
Definition at line 2980 of file mex.cc.
References maybe_unmark(), octave::math::pi, and mxArray::set_imag_data().
Definition at line 3050 of file mex.cc.
References maybe_unmark(), and mxArray::set_ir().
Definition at line 3056 of file mex.cc.
References maybe_unmark(), and mxArray::set_jc().
Definition at line 2895 of file mex.cc.
References m, and mxArray::set_m().
Definition at line 2901 of file mex.cc.
References n, and mxArray::set_n().
Definition at line 3062 of file mex.cc.
References mxArray::set_nzmax().
OCTINTERP_API void mxSetPi | ( | mxArray * | ptr, |
double * | pi | ||
) |
Definition at line 2968 of file mex.cc.
References maybe_unmark(), octave::math::pi, and mxArray::set_imag_data().
OCTINTERP_API void mxSetPr | ( | mxArray * | ptr, |
double * | pr | ||
) |
Definition at line 2962 of file mex.cc.
References maybe_unmark(), and mxArray::set_data().