GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mexproto.h File Reference
#include "octave-config.h"
#include <stdlib.h>
#include <stdbool.h>
#include "mxarray.h"
Include dependency graph for mexproto.h:
This graph shows which files directly or indirectly include this file:

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

OCTINTERP_API int mexAtExit (void(*f)(void))
 
OCTINTERP_API int mexCallMATLAB (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname)
 
OCTINTERP_API mxArraymexCallMATLABWithTrap (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 mxArraymexEvalStringWithTrap (const char *s)
 
void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 
OCTINTERP_API const char * mexFunctionName (void)
 
OCTINTERP_API const mxArraymexGet (double handle, const char *property)
 
OCTINTERP_API mxArraymexGetVariable (const char *space, const char *name)
 
OCTINTERP_API const mxArraymexGetVariablePtr (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 mxArraymxCreateCellArray (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateCellMatrix (mwSize m, mwSize n)
 
OCTINTERP_API mxArraymxCreateCharArray (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateCharMatrixFromStrings (mwSize m, const char **str)
 
OCTINTERP_API mxArraymxCreateDoubleMatrix (mwSize nr, mwSize nc, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateDoubleScalar (double val)
 
OCTINTERP_API mxArraymxCreateLogicalArray (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateLogicalMatrix (mwSize m, mwSize n)
 
OCTINTERP_API mxArraymxCreateLogicalScalar (mxLogical val)
 
OCTINTERP_API mxArraymxCreateNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax)
 
OCTINTERP_API mxArraymxCreateString (const char *str)
 
OCTINTERP_API mxArraymxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys)
 
OCTINTERP_API mxArraymxCreateStructMatrix (mwSize rows, mwSize cols, int num_keys, const char **keys)
 
OCTINTERP_API mxArraymxCreateUninitNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateUninitNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API void mxDestroyArray (mxArray *v)
 
OCTINTERP_API mxArraymxDuplicateArray (const mxArray *v)
 
OCTINTERP_API void mxFree (void *ptr)
 
OCTINTERP_API mxArraymxGetCell (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 mxArraymxGetField (const mxArray *ptr, mwIndex index, const char *key)
 
OCTINTERP_API mxArraymxGetFieldByNumber (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 mxArraymxGetProperty (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)
 

Macro Definition Documentation

◆ MX_HAS_INTERLEAVED_COMPLEX

#define MX_HAS_INTERLEAVED_COMPLEX   0

Definition at line 66 of file mexproto.h.

◆ MXARRAY_TYPEDEFS_ONLY

#define MXARRAY_TYPEDEFS_ONLY

Definition at line 69 of file mexproto.h.

◆ mxAssert

#define mxAssert (   expr,
  msg 
)

Definition at line 436 of file mexproto.h.

◆ mxAssertS

#define mxAssertS (   expr,
  msg 
)

Definition at line 437 of file mexproto.h.

Function Documentation

◆ mexAtExit()

OCTINTERP_API int mexAtExit ( void(*)(void)  f)

Definition at line 5306 of file mex.cc.

References octave_mex_function::atexit(), mex::current_mex_function(), f, and mex_context.

◆ mexCallMATLAB()

OCTINTERP_API int mexCallMATLAB ( int  nargout,
mxArray argout[],
int  nargin,
mxArray argin[],
const char *  fname 
)

◆ mexCallMATLABWithTrap()

OCTINTERP_API mxArray* mexCallMATLABWithTrap ( int  nargout,
mxArray argout[],
int  nargin,
mxArray argin[],
const char *  fname 
)

◆ mexErrMsgIdAndTxt()

OCTINTERP_API void mexErrMsgIdAndTxt ( const char *  id,
const char *  s,
  ... 
)

Definition at line 5085 of file mex.cc.

References error(), len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and verror_with_id().

◆ mexErrMsgTxt()

OCTINTERP_API void mexErrMsgTxt ( const char *  s)

Definition at line 5062 of file mex.cc.

References error(), len, mexFunctionName(), and strlen().

Referenced by mexGetVariable(), mexPutVariable(), and mxIsFromGlobalWS().

◆ mexEvalString()

OCTINTERP_API int mexEvalString ( const char *  s)

Definition at line 4995 of file mex.cc.

References __get_interpreter__().

◆ mexEvalStringWithTrap()

OCTINTERP_API mxArray* mexEvalStringWithTrap ( const char *  s)

◆ mexFunction()

void mexFunction ( int  nlhs,
mxArray plhs[],
int  nrhs,
const mxArray prhs[] 
)

◆ mexFunctionName()

OCTINTERP_API const char* mexFunctionName ( void  )

◆ mexGet()

OCTINTERP_API const mxArray* mexGet ( double  handle,
const char *  property 
)

◆ mexGetVariable()

OCTINTERP_API mxArray* mexGetVariable ( const char *  space,
const char *  name 
)

◆ mexGetVariablePtr()

OCTINTERP_API const mxArray* mexGetVariablePtr ( const char *  space,
const char *  name 
)

Definition at line 5211 of file mex.cc.

References mexGetVariable().

◆ mexIsGlobal()

OCTINTERP_API int mexIsGlobal ( const mxArray ptr)

Definition at line 5347 of file mex.cc.

References mxIsFromGlobalWS().

◆ mexIsLocked()

OCTINTERP_API int mexIsLocked ( void  )

Definition at line 5353 of file mex.cc.

References __get_interpreter__(), mex_context, and mexFunctionName().

◆ mexLock()

OCTINTERP_API void mexLock ( void  )

Definition at line 5372 of file mex.cc.

References __get_interpreter__(), mex_context, mex_lock_count, and mexFunctionName().

◆ mexMakeArrayPersistent()

OCTINTERP_API void mexMakeArrayPersistent ( mxArray ptr)

Definition at line 5294 of file mex.cc.

References maybe_unmark_array().

◆ mexMakeMemoryPersistent()

OCTINTERP_API void mexMakeMemoryPersistent ( void *  ptr)

Definition at line 5300 of file mex.cc.

References maybe_unmark().

◆ mexPrintf()

OCTINTERP_API int mexPrintf ( const char *  fmt,
  ... 
)

Definition at line 5149 of file mex.cc.

References octave_stdout, and vformat().

◆ mexPutVariable()

OCTINTERP_API int mexPutVariable ( const char *  space,
const char *  name,
const mxArray ptr 
)

◆ mexSet()

OCTINTERP_API int mexSet ( double  handle,
const char *  property,
mxArray val 
)

Definition at line 5390 of file mex.cc.

References mxArray::as_octave_value(), and set_property_in_handle().

◆ mexSetTrapFlag()

OCTINTERP_API void mexSetTrapFlag ( int  flag)

Definition at line 4988 of file mex.cc.

References mex_context, and mex::trap_feval_error.

Referenced by mexCallMATLABWithTrap().

◆ mexUnlock()

OCTINTERP_API void mexUnlock ( void  )

Definition at line 5411 of file mex.cc.

References __get_interpreter__(), mex_context, mex_lock_count, and mexFunctionName().

◆ mexWarnMsgIdAndTxt()

OCTINTERP_API void mexWarnMsgIdAndTxt ( const char *  id,
const char *  s,
  ... 
)

Definition at line 5130 of file mex.cc.

References len, mexFunctionName(), OCTAVE_LOCAL_BUFFER, strlen(), and vwarning_with_id().

◆ mexWarnMsgTxt()

OCTINTERP_API void mexWarnMsgTxt ( const char *  s)

Definition at line 5107 of file mex.cc.

References len, strlen(), and warning().

◆ mxAddField()

OCTINTERP_API int mxAddField ( mxArray ptr,
const char *  key 
)

Definition at line 4699 of file mex.cc.

References mxArray::add_field().

◆ mxArrayToString()

OCTINTERP_API char* mxArrayToString ( const mxArray ptr)

Definition at line 4761 of file mex.cc.

References mxArray::array_to_string().

◆ mxCalcSingleSubscript()

OCTINTERP_API mwIndex mxCalcSingleSubscript ( const mxArray ptr,
mwSize  nsubs,
mwIndex *  subs 
)

Definition at line 4767 of file mex.cc.

References mxArray::calc_single_subscript().

◆ mxCalloc()

OCTINTERP_API void* mxCalloc ( size_t  n,
size_t  size 
)

◆ mxCreateCellArray()

OCTINTERP_API mxArray* mxCreateCellArray ( mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3894 of file mex.cc.

References maybe_mark_array().

◆ mxCreateCellMatrix()

OCTINTERP_API mxArray* mxCreateCellMatrix ( mwSize  m,
mwSize  n 
)

Definition at line 3906 of file mex.cc.

References m, maybe_mark_array(), and n.

Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().

◆ mxCreateCharArray()

OCTINTERP_API mxArray* mxCreateCharArray ( mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3918 of file mex.cc.

References maybe_mark_array().

◆ mxCreateCharMatrixFromStrings()

OCTINTERP_API mxArray* mxCreateCharMatrixFromStrings ( mwSize  m,
const char **  str 
)

Definition at line 3930 of file mex.cc.

References m, and maybe_mark_array().

◆ mxCreateDoubleMatrix()

OCTINTERP_API mxArray* mxCreateDoubleMatrix ( mwSize  nr,
mwSize  nc,
mxComplexity  flag 
)

Definition at line 3942 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateDoubleScalar()

OCTINTERP_API mxArray* mxCreateDoubleScalar ( double  val)

Definition at line 3954 of file mex.cc.

References maybe_mark_array().

◆ mxCreateLogicalArray()

OCTINTERP_API mxArray* mxCreateLogicalArray ( mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3966 of file mex.cc.

References maybe_mark_array().

◆ mxCreateLogicalMatrix()

OCTINTERP_API mxArray* mxCreateLogicalMatrix ( mwSize  m,
mwSize  n 
)

Definition at line 3978 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateLogicalScalar()

OCTINTERP_API mxArray* mxCreateLogicalScalar ( mxLogical  val)

Definition at line 3990 of file mex.cc.

References maybe_mark_array().

◆ mxCreateNumericArray()

OCTINTERP_API mxArray* mxCreateNumericArray ( mwSize  ndims,
const mwSize *  dims,
mxClassID  class_id,
mxComplexity  flag 
)

Definition at line 4003 of file mex.cc.

References maybe_mark_array().

◆ mxCreateNumericMatrix()

OCTINTERP_API mxArray* mxCreateNumericMatrix ( mwSize  m,
mwSize  n,
mxClassID  class_id,
mxComplexity  flag 
)

Definition at line 4017 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateSparse()

OCTINTERP_API mxArray* mxCreateSparse ( mwSize  m,
mwSize  n,
mwSize  nzmax,
mxComplexity  flag 
)

Definition at line 4061 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateSparseLogicalMatrix()

OCTINTERP_API mxArray* mxCreateSparseLogicalMatrix ( mwSize  m,
mwSize  n,
mwSize  nzmax 
)

Definition at line 4074 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateString()

OCTINTERP_API mxArray* mxCreateString ( const char *  str)

Definition at line 4086 of file mex.cc.

References maybe_mark_array().

Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().

◆ mxCreateStructArray()

OCTINTERP_API mxArray* mxCreateStructArray ( mwSize  ndims,
const mwSize *  dims,
int  num_keys,
const char **  keys 
)

Definition at line 4099 of file mex.cc.

References maybe_mark_array().

◆ mxCreateStructMatrix()

OCTINTERP_API mxArray* mxCreateStructMatrix ( mwSize  rows,
mwSize  cols,
int  num_keys,
const char **  keys 
)

Definition at line 4113 of file mex.cc.

References m, maybe_mark_array(), and n.

Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().

◆ mxCreateUninitNumericArray()

OCTINTERP_API mxArray* mxCreateUninitNumericArray ( mwSize  ndims,
const mwSize *  dims,
mxClassID  class_id,
mxComplexity  flag 
)

Definition at line 4032 of file mex.cc.

References maybe_mark_array().

◆ mxCreateUninitNumericMatrix()

OCTINTERP_API mxArray* mxCreateUninitNumericMatrix ( mwSize  m,
mwSize  n,
mxClassID  class_id,
mxComplexity  flag 
)

Definition at line 4047 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxDestroyArray()

OCTINTERP_API void mxDestroyArray ( mxArray v)

Definition at line 4128 of file mex.cc.

References mex::free_value(), and mex_context.

◆ mxDuplicateArray()

OCTINTERP_API mxArray* mxDuplicateArray ( const mxArray v)

Definition at line 4121 of file mex.cc.

References mxArray::dup(), and maybe_mark_array().

◆ mxFree()

◆ mxGetCell()

OCTINTERP_API mxArray* mxGetCell ( const mxArray ptr,
mwIndex  idx 
)

Definition at line 4649 of file mex.cc.

References mxArray::get_cell().

◆ mxGetChars()

OCTINTERP_API mxChar* mxGetChars ( const mxArray ptr)

Definition at line 4352 of file mex.cc.

References mxArray::get_data(), and mxIsChar().

◆ mxGetClassID()

OCTINTERP_API mxClassID mxGetClassID ( const mxArray ptr)

Definition at line 4617 of file mex.cc.

References mxArray::get_class_id().

◆ mxGetClassName()

OCTINTERP_API const char* mxGetClassName ( const mxArray ptr)

Definition at line 4623 of file mex.cc.

References mxArray::get_class_name().

◆ mxGetData()

OCTINTERP_API void* mxGetData ( const mxArray ptr)

Definition at line 4367 of file mex.cc.

References mxArray::get_data().

◆ mxGetDimensions()

OCTINTERP_API const mwSize* mxGetDimensions ( const mxArray ptr)

Definition at line 4300 of file mex.cc.

References mxArray::get_dimensions().

◆ mxGetElementSize()

OCTINTERP_API size_t mxGetElementSize ( const mxArray ptr)

Definition at line 4773 of file mex.cc.

References mxArray::get_element_size().

◆ mxGetEps()

OCTINTERP_API double mxGetEps ( void  )

Definition at line 3834 of file mex.cc.

◆ mxGetField()

OCTINTERP_API mxArray* mxGetField ( const mxArray ptr,
mwIndex  index,
const char *  key 
)

Definition at line 4711 of file mex.cc.

References mxGetFieldByNumber(), and mxGetFieldNumber().

◆ mxGetFieldByNumber()

OCTINTERP_API mxArray* mxGetFieldByNumber ( const mxArray ptr,
mwIndex  index,
int  key_num 
)

Definition at line 4718 of file mex.cc.

References mxArray::get_field_by_number().

Referenced by mxGetField().

◆ mxGetFieldNameByNumber()

OCTINTERP_API const char* mxGetFieldNameByNumber ( const mxArray ptr,
int  key_num 
)

Definition at line 4743 of file mex.cc.

References mxArray::get_field_name_by_number().

◆ mxGetFieldNumber()

OCTINTERP_API int mxGetFieldNumber ( const mxArray ptr,
const char *  key 
)

Definition at line 4749 of file mex.cc.

References mxArray::get_field_number().

Referenced by mxGetField(), and mxSetField().

◆ mxGetImagData()

OCTINTERP_API void* mxGetImagData ( const mxArray ptr)

Definition at line 4379 of file mex.cc.

References mxArray::get_imag_data().

◆ mxGetInf()

OCTINTERP_API double mxGetInf ( void  )

Definition at line 3840 of file mex.cc.

References lo_ieee_inf_value().

◆ mxGetIr()

OCTINTERP_API mwIndex* mxGetIr ( const mxArray ptr)

Definition at line 4662 of file mex.cc.

References mxArray::get_ir().

◆ mxGetJc()

OCTINTERP_API mwIndex* mxGetJc ( const mxArray ptr)

Definition at line 4668 of file mex.cc.

References mxArray::get_jc().

◆ mxGetLogicals()

OCTINTERP_API mxLogical* mxGetLogicals ( const mxArray ptr)

Definition at line 4361 of file mex.cc.

References mxArray::get_data().

◆ mxGetM()

OCTINTERP_API size_t mxGetM ( const mxArray ptr)

Definition at line 4288 of file mex.cc.

References mxArray::get_m().

◆ mxGetN()

OCTINTERP_API size_t mxGetN ( const mxArray ptr)

Definition at line 4294 of file mex.cc.

References mxArray::get_n().

◆ mxGetNaN()

OCTINTERP_API double mxGetNaN ( void  )

Definition at line 3846 of file mex.cc.

References lo_ieee_nan_value().

◆ mxGetNumberOfDimensions()

OCTINTERP_API mwSize mxGetNumberOfDimensions ( const mxArray ptr)

Definition at line 4306 of file mex.cc.

References mxArray::get_number_of_dimensions().

◆ mxGetNumberOfElements()

OCTINTERP_API size_t mxGetNumberOfElements ( const mxArray ptr)

Definition at line 4312 of file mex.cc.

References mxArray::get_number_of_elements().

◆ mxGetNumberOfFields()

OCTINTERP_API int mxGetNumberOfFields ( const mxArray ptr)

Definition at line 4737 of file mex.cc.

References mxArray::get_number_of_fields().

◆ mxGetNzmax()

OCTINTERP_API mwSize mxGetNzmax ( const mxArray ptr)

Definition at line 4674 of file mex.cc.

References mxArray::get_nzmax().

◆ mxGetPi()

OCTINTERP_API double* mxGetPi ( const mxArray ptr)

Definition at line 4373 of file mex.cc.

References mxArray::get_imag_data().

◆ mxGetPr()

OCTINTERP_API double* mxGetPr ( const mxArray ptr)

Definition at line 4340 of file mex.cc.

References mxArray::get_data().

◆ mxGetProperty()

OCTINTERP_API mxArray* mxGetProperty ( const mxArray ptr,
mwIndex  idx,
const char *  property_name 
)

Definition at line 4642 of file mex.cc.

References mxArray::get_property().

◆ mxGetScalar()

OCTINTERP_API double mxGetScalar ( const mxArray ptr)

Definition at line 4346 of file mex.cc.

References mxArray::get_scalar().

◆ mxGetString()

OCTINTERP_API int mxGetString ( const mxArray ptr,
char *  buf,
mwSize  buflen 
)

Definition at line 4755 of file mex.cc.

References mxArray::get_string().

◆ mxIsCell()

OCTINTERP_API bool mxIsCell ( const mxArray ptr)

Definition at line 4136 of file mex.cc.

References mxArray::iscell().

◆ mxIsChar()

OCTINTERP_API bool mxIsChar ( const mxArray ptr)

Definition at line 4142 of file mex.cc.

References mxArray::is_char().

Referenced by mxGetChars().

◆ mxIsClass()

OCTINTERP_API bool mxIsClass ( const mxArray ptr,
const char *  name 
)

Definition at line 4148 of file mex.cc.

References mxArray::is_class().

◆ mxIsComplex()

OCTINTERP_API bool mxIsComplex ( const mxArray ptr)

Definition at line 4154 of file mex.cc.

References mxArray::is_complex().

◆ mxIsDouble()

OCTINTERP_API bool mxIsDouble ( const mxArray ptr)

Definition at line 4160 of file mex.cc.

References mxArray::is_double().

◆ mxIsEmpty()

OCTINTERP_API bool mxIsEmpty ( const mxArray ptr)

Definition at line 4265 of file mex.cc.

References mxArray::isempty().

◆ mxIsFinite()

OCTINTERP_API bool mxIsFinite ( double  v)

Definition at line 3816 of file mex.cc.

References lo_ieee_isfinite.

◆ mxIsFromGlobalWS()

OCTINTERP_API bool mxIsFromGlobalWS ( const mxArray ptr)

Definition at line 4279 of file mex.cc.

References mexErrMsgTxt().

Referenced by mexIsGlobal().

◆ mxIsFunctionHandle()

OCTINTERP_API bool mxIsFunctionHandle ( const mxArray ptr)

Definition at line 4166 of file mex.cc.

References mxArray::is_function_handle().

◆ mxIsInf()

OCTINTERP_API bool mxIsInf ( double  v)

Definition at line 3822 of file mex.cc.

References lo_ieee_isinf.

◆ mxIsInt16()

OCTINTERP_API bool mxIsInt16 ( const mxArray ptr)

Definition at line 4172 of file mex.cc.

References mxArray::is_int16().

◆ mxIsInt32()

OCTINTERP_API bool mxIsInt32 ( const mxArray ptr)

Definition at line 4178 of file mex.cc.

References mxArray::is_int32().

◆ mxIsInt64()

OCTINTERP_API bool mxIsInt64 ( const mxArray ptr)

Definition at line 4184 of file mex.cc.

References mxArray::is_int64().

◆ mxIsInt8()

OCTINTERP_API bool mxIsInt8 ( const mxArray ptr)

Definition at line 4190 of file mex.cc.

References mxArray::is_int8().

◆ mxIsLogical()

OCTINTERP_API bool mxIsLogical ( const mxArray ptr)

Definition at line 4196 of file mex.cc.

References mxArray::is_logical().

◆ mxIsLogicalScalar()

OCTINTERP_API bool mxIsLogicalScalar ( const mxArray ptr)

Definition at line 4251 of file mex.cc.

References mxArray::is_logical_scalar().

◆ mxIsLogicalScalarTrue()

OCTINTERP_API bool mxIsLogicalScalarTrue ( const mxArray ptr)

Definition at line 4258 of file mex.cc.

References mxArray::is_logical_scalar_true().

◆ mxIsNaN()

OCTINTERP_API bool mxIsNaN ( double  v)

Definition at line 3828 of file mex.cc.

References lo_ieee_isnan.

◆ mxIsNumeric()

OCTINTERP_API bool mxIsNumeric ( const mxArray ptr)

Definition at line 4202 of file mex.cc.

References mxArray::is_numeric().

◆ mxIsScalar()

OCTINTERP_API bool mxIsScalar ( const mxArray ptr)

Definition at line 4271 of file mex.cc.

References mxArray::is_scalar().

◆ mxIsSingle()

OCTINTERP_API bool mxIsSingle ( const mxArray ptr)

Definition at line 4208 of file mex.cc.

References mxArray::is_single().

◆ mxIsSparse()

OCTINTERP_API bool mxIsSparse ( const mxArray ptr)

Definition at line 4214 of file mex.cc.

References mxArray::is_sparse().

◆ mxIsStruct()

OCTINTERP_API bool mxIsStruct ( const mxArray ptr)

Definition at line 4220 of file mex.cc.

References mxArray::is_struct().

◆ mxIsUint16()

OCTINTERP_API bool mxIsUint16 ( const mxArray ptr)

Definition at line 4226 of file mex.cc.

References mxArray::is_uint16().

◆ mxIsUint32()

OCTINTERP_API bool mxIsUint32 ( const mxArray ptr)

Definition at line 4232 of file mex.cc.

References mxArray::is_uint32().

◆ mxIsUint64()

OCTINTERP_API bool mxIsUint64 ( const mxArray ptr)

Definition at line 4238 of file mex.cc.

References mxArray::is_uint64().

◆ mxIsUint8()

OCTINTERP_API bool mxIsUint8 ( const mxArray ptr)

Definition at line 4244 of file mex.cc.

References mxArray::is_uint8().

◆ mxMalloc()

OCTINTERP_API void* mxMalloc ( size_t  n)

◆ mxRealloc()

OCTINTERP_API void* mxRealloc ( void *  ptr,
size_t  size 
)

◆ mxRemoveField()

OCTINTERP_API void mxRemoveField ( mxArray ptr,
int  key_num 
)

Definition at line 4705 of file mex.cc.

References mxArray::remove_field().

◆ mxSetCell()

OCTINTERP_API void mxSetCell ( mxArray ptr,
mwIndex  idx,
mxArray val 
)

Definition at line 4655 of file mex.cc.

References mxArray::set_cell().

◆ mxSetClassName()

OCTINTERP_API void mxSetClassName ( mxArray ptr,
const char *  name 
)

Definition at line 4629 of file mex.cc.

References mxArray::set_class_name().

◆ mxSetData()

OCTINTERP_API void mxSetData ( mxArray ptr,
void *  data 
)

Definition at line 4495 of file mex.cc.

References maybe_unmark(), and mxArray::set_data().

◆ mxSetDimensions()

OCTINTERP_API int mxSetDimensions ( mxArray ptr,
const mwSize *  dims,
mwSize  ndims 
)

Definition at line 4331 of file mex.cc.

References maybe_unmark(), and mxArray::set_dimensions().

◆ mxSetField()

OCTINTERP_API void mxSetField ( mxArray ptr,
mwIndex  index,
const char *  key,
mxArray val 
)

Definition at line 4724 of file mex.cc.

References mxGetFieldNumber(), and mxSetFieldByNumber().

◆ mxSetFieldByNumber()

OCTINTERP_API void mxSetFieldByNumber ( mxArray ptr,
mwIndex  index,
int  key_num,
mxArray val 
)

Definition at line 4731 of file mex.cc.

References mxArray::set_field_by_number().

Referenced by mexCallMATLABWithTrap(), mexEvalStringWithTrap(), and mxSetField().

◆ mxSetImagData()

OCTINTERP_API void mxSetImagData ( mxArray ptr,
void *  pi 
)

Definition at line 4610 of file mex.cc.

References maybe_unmark(), pi, and mxArray::set_imag_data().

◆ mxSetIr()

OCTINTERP_API void mxSetIr ( mxArray ptr,
mwIndex *  ir 
)

Definition at line 4680 of file mex.cc.

References maybe_unmark(), and mxArray::set_ir().

◆ mxSetJc()

OCTINTERP_API void mxSetJc ( mxArray ptr,
mwIndex *  jc 
)

Definition at line 4686 of file mex.cc.

References maybe_unmark(), and mxArray::set_jc().

◆ mxSetM()

OCTINTERP_API void mxSetM ( mxArray ptr,
mwSize  M 
)

Definition at line 4319 of file mex.cc.

References m, and mxArray::set_m().

◆ mxSetN()

OCTINTERP_API void mxSetN ( mxArray ptr,
mwSize  N 
)

Definition at line 4325 of file mex.cc.

References n, and mxArray::set_n().

◆ mxSetNzmax()

OCTINTERP_API void mxSetNzmax ( mxArray ptr,
mwSize  nzmax 
)

Definition at line 4692 of file mex.cc.

References mxArray::set_nzmax().

◆ mxSetPi()

OCTINTERP_API void mxSetPi ( mxArray ptr,
double *  pi 
)

Definition at line 4604 of file mex.cc.

References maybe_unmark(), pi, and mxArray::set_imag_data().

◆ mxSetPr()

OCTINTERP_API void mxSetPr ( mxArray ptr,
double *  pr 
)

Definition at line 4489 of file mex.cc.

References maybe_unmark(), and mxArray::set_data().

◆ mxSetProperty()

OCTINTERP_API void mxSetProperty ( mxArray ptr,
mwIndex  idx,
const char *  property_name,
const mxArray property_value 
)

Definition at line 4635 of file mex.cc.

References mxArray::set_property().