GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mex.cc File Reference
#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <limits>
#include <map>
#include <set>
#include <string>
#include "f77-fcn.h"
#include "lo-ieee.h"
#include "oct-locbuf.h"
#include "quit.h"
#include "Cell.h"
#include "error.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "mxarray.h"
#include "mexproto.h"
#include "oct-map.h"
#include "ovl.h"
#include "ov.h"
#include "ov-classdef.h"
#include "ov-mex-fcn.h"
#include "ov-usr-fcn.h"
#include "pager.h"
#include "parse.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "graphics.h"
Include dependency graph for mex.cc:

Go to the source code of this file.

Classes

class  fp_type_traits< T >
 
class  fp_type_traits< Complex >
 
class  fp_type_traits< FloatComplex >
 
class  mex
 
class  mxArray_base_full
 
class  mxArray_base_sparse
 
class  mxArray_cell
 
class  mxArray_interleaved_full
 
class  mxArray_interleaved_sparse
 
class  mxArray_matlab
 
class  mxArray_octave_value
 
class  mxArray_separate_full
 
class  mxArray_separate_sparse
 
class  mxArray_struct
 

Macros

#define CONST_MUTATION_METHOD(RET_TYPE, FCN_NAME, ARG_LIST, RET_VAL)    RET_TYPE FCN_NAME ARG_LIST const { request_mutation (); return RET_VAL; }
 
#define CONST_VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST)    void FCN_NAME ARG_LIST const { request_mutation (); }
 
#define GET_DATA_METHOD(RT, FCN_NAME, ID, COMPLEXITY)    RT * FCN_NAME (void) const { return get_data<RT> (ID, COMPLEXITY); }
 
#define MUTATION_METHOD(RET_TYPE, FCN_NAME, ARG_LIST, RET_VAL)    RET_TYPE FCN_NAME ARG_LIST { request_mutation (); return RET_VAL; }
 
#define VOID_MUTATION_METHOD(FCN_NAME, ARG_LIST)    void FCN_NAME ARG_LIST { request_mutation (); }
 

Typedefs

typedef void(* cmex_fptr) (int nlhs, mxArray **plhs, int nrhs, mxArray **prhs)
 
typedef F77_RET_T(* fmex_fptr) (F77_INT &nlhs, mxArray **plhs, F77_INT &nrhs, mxArray **prhs)
 

Functions

static mwIndex calc_single_subscript_internal (mwSize ndims, const mwSize *dims, mwSize nsubs, const mwIndex *subs)
 
octave_value_list call_mex (octave_mex_function &mex_fcn, const octave_value_list &args, int nargout_arg)
 
static mwSize max_str_len (mwSize m, const char **str)
 
static mxArraymaybe_mark_array (mxArray *ptr)
 
static void * maybe_mark_foreign (void *ptr)
 
template<typename T >
static T * maybe_unmark (T *ptr)
 
static mxArraymaybe_unmark_array (mxArray *ptr)
 
int mexAtExit (void(*f)(void))
 
int mexCallMATLAB (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname)
 
mxArraymexCallMATLABWithTrap (int nargout, mxArray *argout[], int nargin, mxArray *argin[], const char *fname)
 
void mexErrMsgIdAndTxt (const char *id, const char *fmt,...)
 
void mexErrMsgTxt (const char *s)
 
int mexEvalString (const char *s)
 
mxArraymexEvalStringWithTrap (const char *s)
 
const char * mexFunctionName (void)
 
const mxArraymexGet (double handle, const char *property)
 
OCTINTERP_API const mxArraymexGet_interleaved (double handle, const char *property)
 
mxArraymexGetVariable (const char *space, const char *name)
 
const mxArraymexGetVariablePtr (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 *fmt,...)
 
void mexWarnMsgTxt (const char *s)
 
static octave_value_list mx_to_ov_args (int nargin, mxArray *argin[])
 
int mxAddField (mxArray *ptr, const char *key)
 
char * mxArrayToString (const mxArray *ptr)
 
mwIndex mxCalcSingleSubscript (const mxArray *ptr, mwSize nsubs, mwIndex *subs)
 
void * mxCalloc (std::size_t n, std::size_t size)
 
OCTINTERP_API mxArraymxCreateCellArray (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateCellArray_interleaved (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateCellMatrix (mwSize m, mwSize n)
 
OCTINTERP_API mxArraymxCreateCellMatrix_interleaved (mwSize m, mwSize n)
 
OCTINTERP_API mxArraymxCreateCharArray (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateCharArray_interleaved (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateCharMatrixFromStrings (mwSize m, const char **str)
 
OCTINTERP_API mxArraymxCreateCharMatrixFromStrings_interleaved (mwSize m, const char **str)
 
OCTINTERP_API mxArraymxCreateDoubleMatrix (mwSize nr, mwSize nc, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateDoubleMatrix_interleaved (mwSize nr, mwSize nc, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateDoubleScalar (double val)
 
OCTINTERP_API mxArraymxCreateDoubleScalar_interleaved (double val)
 
OCTINTERP_API mxArraymxCreateLogicalArray (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateLogicalArray_interleaved (mwSize ndims, const mwSize *dims)
 
OCTINTERP_API mxArraymxCreateLogicalMatrix (mwSize m, mwSize n)
 
OCTINTERP_API mxArraymxCreateLogicalMatrix_interleaved (mwSize m, mwSize n)
 
OCTINTERP_API mxArraymxCreateLogicalScalar (mxLogical val)
 
OCTINTERP_API mxArraymxCreateLogicalScalar_interleaved (mxLogical val)
 
OCTINTERP_API mxArraymxCreateNumericArray (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateNumericArray_interleaved (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateNumericMatrix_interleaved (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateSparse (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateSparse_interleaved (mwSize m, mwSize n, mwSize nzmax, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateSparseLogicalMatrix (mwSize m, mwSize n, mwSize nzmax)
 
OCTINTERP_API mxArraymxCreateSparseLogicalMatrix_interleaved (mwSize m, mwSize n, mwSize nzmax)
 
OCTINTERP_API mxArraymxCreateString (const char *str)
 
OCTINTERP_API mxArraymxCreateString_interleaved (const char *str)
 
OCTINTERP_API mxArraymxCreateStructArray (mwSize ndims, const mwSize *dims, int num_keys, const char **keys)
 
OCTINTERP_API mxArraymxCreateStructArray_interleaved (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 mxArraymxCreateStructMatrix_interleaved (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 mxArraymxCreateUninitNumericArray_interleaved (mwSize ndims, const mwSize *dims, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateUninitNumericMatrix (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag)
 
OCTINTERP_API mxArraymxCreateUninitNumericMatrix_interleaved (mwSize m, mwSize n, mxClassID class_id, mxComplexity flag)
 
void mxDestroyArray (mxArray *ptr)
 
mxArraymxDuplicateArray (const mxArray *ptr)
 
void mxFree (void *ptr)
 
mxArraymxGetCell (const mxArray *ptr, mwIndex idx)
 
mxChar * mxGetChars (const mxArray *ptr)
 
mxClassID mxGetClassID (const mxArray *ptr)
 
const char * mxGetClassName (const mxArray *ptr)
 
OCTINTERP_API mxComplexDouble * mxGetComplexDoubles (const mxArray *p)
 
OCTINTERP_API mxComplexSingle * mxGetComplexSingles (const mxArray *p)
 
void * mxGetData (const mxArray *ptr)
 
const mwSize * mxGetDimensions (const mxArray *ptr)
 
OCTINTERP_API mxDouble * mxGetDoubles (const mxArray *p)
 
std::size_t mxGetElementSize (const mxArray *ptr)
 
double mxGetEps (void)
 
mxArraymxGetField (const mxArray *ptr, mwIndex index, const char *key)
 
mxArraymxGetFieldByNumber (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)
 
OCTINTERP_API void * mxGetImagData (const mxArray *ptr)
 
double mxGetInf (void)
 
OCTINTERP_API mxInt16 * mxGetInt16s (const mxArray *p)
 
OCTINTERP_API mxInt32 * mxGetInt32s (const mxArray *p)
 
OCTINTERP_API mxInt64 * mxGetInt64s (const mxArray *p)
 
OCTINTERP_API mxInt8 * mxGetInt8s (const mxArray *p)
 
mwIndex * mxGetIr (const mxArray *ptr)
 
mwIndex * mxGetJc (const mxArray *ptr)
 
mxLogical * mxGetLogicals (const mxArray *ptr)
 
std::size_t mxGetM (const mxArray *ptr)
 
std::size_t mxGetN (const mxArray *ptr)
 
double mxGetNaN (void)
 
mwSize mxGetNumberOfDimensions (const mxArray *ptr)
 
std::size_t mxGetNumberOfElements (const mxArray *ptr)
 
int mxGetNumberOfFields (const mxArray *ptr)
 
mwSize mxGetNzmax (const mxArray *ptr)
 
OCTINTERP_API double * mxGetPi (const mxArray *ptr)
 
double * mxGetPr (const mxArray *ptr)
 
mxArraymxGetProperty (const mxArray *ptr, mwIndex idx, const char *property_name)
 
double mxGetScalar (const mxArray *ptr)
 
OCTINTERP_API mxSingle * mxGetSingles (const mxArray *p)
 
int mxGetString (const mxArray *ptr, char *buf, mwSize buflen)
 
OCTINTERP_API mxUint16 * mxGetUint16s (const mxArray *p)
 
OCTINTERP_API mxUint32 * mxGetUint32s (const mxArray *p)
 
OCTINTERP_API mxUint64 * mxGetUint64s (const mxArray *p)
 
OCTINTERP_API mxUint8 * mxGetUint8s (const mxArray *p)
 
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 (const double v)
 
bool mxIsFromGlobalWS (const mxArray *)
 
bool mxIsFunctionHandle (const mxArray *ptr)
 
bool mxIsInf (const 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 (const 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)
 
OCTINTERP_API int mxMakeArrayComplex (mxArray *ptr)
 
OCTINTERP_API int mxMakeArrayReal (mxArray *ptr)
 
void * mxMalloc (std::size_t n)
 
void * mxRealloc (void *ptr, std::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)
 
OCTINTERP_API int mxSetComplexDoubles (mxArray *p, mxComplexDouble *d)
 
OCTINTERP_API int mxSetComplexSingles (mxArray *p, mxComplexSingle *d)
 
void mxSetData (mxArray *ptr, void *pr)
 
int mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims)
 
OCTINTERP_API int mxSetDoubles (mxArray *p, mxDouble *d)
 
void mxSetField (mxArray *ptr, mwIndex index, const char *key, mxArray *val)
 
void mxSetFieldByNumber (mxArray *ptr, mwIndex index, int key_num, mxArray *val)
 
OCTINTERP_API void mxSetImagData (mxArray *ptr, void *pi)
 
OCTINTERP_API int mxSetInt16s (mxArray *p, mxInt16 *d)
 
OCTINTERP_API int mxSetInt32s (mxArray *p, mxInt32 *d)
 
OCTINTERP_API int mxSetInt64s (mxArray *p, mxInt64 *d)
 
OCTINTERP_API int mxSetInt8s (mxArray *p, mxInt8 *d)
 
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)
 
OCTINTERP_API 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)
 
OCTINTERP_API int mxSetSingles (mxArray *p, mxSingle *d)
 
OCTINTERP_API int mxSetUint16s (mxArray *p, mxUint16 *d)
 
OCTINTERP_API int mxSetUint32s (mxArray *p, mxUint32 *d)
 
OCTINTERP_API int mxSetUint64s (mxArray *p, mxUint64 *d)
 
OCTINTERP_API int mxSetUint8s (mxArray *p, mxUint8 *d)
 
static void xfree (void *ptr)
 
static void * xmalloc (size_t n)
 
static void * xrealloc (void *ptr, size_t n)
 

Variables

mexmex_context = nullptr
 
std::map< std::string, int > mex_lock_count
 

Macro Definition Documentation

◆ CONST_MUTATION_METHOD

#define CONST_MUTATION_METHOD (   RET_TYPE,
  FCN_NAME,
  ARG_LIST,
  RET_VAL 
)     RET_TYPE FCN_NAME ARG_LIST const { request_mutation (); return RET_VAL; }

Definition at line 464 of file mex.cc.

◆ CONST_VOID_MUTATION_METHOD

#define CONST_VOID_MUTATION_METHOD (   FCN_NAME,
  ARG_LIST 
)     void FCN_NAME ARG_LIST const { request_mutation (); }

Definition at line 458 of file mex.cc.

◆ GET_DATA_METHOD

#define GET_DATA_METHOD (   RT,
  FCN_NAME,
  ID,
  COMPLEXITY 
)     RT * FCN_NAME (void) const { return get_data<RT> (ID, COMPLEXITY); }

Definition at line 467 of file mex.cc.

◆ MUTATION_METHOD

#define MUTATION_METHOD (   RET_TYPE,
  FCN_NAME,
  ARG_LIST,
  RET_VAL 
)     RET_TYPE FCN_NAME ARG_LIST { request_mutation (); return RET_VAL; }

Definition at line 461 of file mex.cc.

◆ VOID_MUTATION_METHOD

#define VOID_MUTATION_METHOD (   FCN_NAME,
  ARG_LIST 
)     void FCN_NAME ARG_LIST { request_mutation (); }

Definition at line 455 of file mex.cc.

Typedef Documentation

◆ cmex_fptr

typedef void(* cmex_fptr) (int nlhs, mxArray **plhs, int nrhs, mxArray **prhs)

Definition at line 4780 of file mex.cc.

◆ fmex_fptr

typedef F77_RET_T(* fmex_fptr) (F77_INT &nlhs, mxArray **plhs, F77_INT &nrhs, mxArray **prhs)

Definition at line 4781 of file mex.cc.

Function Documentation

◆ calc_single_subscript_internal()

static mwIndex calc_single_subscript_internal ( mwSize  ndims,
const mwSize *  dims,
mwSize  nsubs,
const mwIndex *  subs 
)
static

Definition at line 407 of file mex.cc.

References n.

Referenced by mxArray_octave_value::calc_single_subscript(), and mxArray_matlab::calc_single_subscript().

◆ call_mex()

◆ max_str_len()

static mwSize max_str_len ( mwSize  m,
const char **  str 
)
static

Definition at line 301 of file mex.cc.

References m, and strlen().

◆ maybe_mark_array()

◆ maybe_mark_foreign()

static void * maybe_mark_foreign ( void *  ptr)
inlinestatic

◆ maybe_unmark()

◆ maybe_unmark_array()

static mxArray* maybe_unmark_array ( mxArray ptr)
inlinestatic

◆ mexAtExit()

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()

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

◆ mexCallMATLABWithTrap()

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

◆ mexErrMsgIdAndTxt()

void mexErrMsgIdAndTxt ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 5085 of file mex.cc.

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

◆ mexErrMsgTxt()

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()

int mexEvalString ( const char *  s)

Definition at line 4995 of file mex.cc.

References __get_interpreter__().

◆ mexEvalStringWithTrap()

mxArray* mexEvalStringWithTrap ( const char *  s)

◆ mexFunctionName()

const char* mexFunctionName ( void  )

◆ mexGet()

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

◆ mexGet_interleaved()

const mxArray * mexGet_interleaved ( double  handle,
const char *  property 
)

◆ mexGetVariable()

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

◆ mexGetVariablePtr()

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

Definition at line 5211 of file mex.cc.

References mexGetVariable().

◆ mexIsGlobal()

int mexIsGlobal ( const mxArray ptr)

Definition at line 5347 of file mex.cc.

References mxIsFromGlobalWS().

◆ mexIsLocked()

int mexIsLocked ( void  )

Definition at line 5353 of file mex.cc.

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

◆ mexLock()

void mexLock ( void  )

Definition at line 5372 of file mex.cc.

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

◆ mexMakeArrayPersistent()

void mexMakeArrayPersistent ( mxArray ptr)

Definition at line 5294 of file mex.cc.

References maybe_unmark_array().

◆ mexMakeMemoryPersistent()

void mexMakeMemoryPersistent ( void *  ptr)

Definition at line 5300 of file mex.cc.

References maybe_unmark().

◆ mexPrintf()

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

Definition at line 5149 of file mex.cc.

References octave_stdout, and vformat().

◆ mexPutVariable()

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

◆ mexSet()

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()

void mexSetTrapFlag ( int  flag)

Definition at line 4988 of file mex.cc.

References mex_context, and mex::trap_feval_error.

Referenced by mexCallMATLABWithTrap().

◆ mexUnlock()

void mexUnlock ( void  )

Definition at line 5411 of file mex.cc.

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

◆ mexWarnMsgIdAndTxt()

void mexWarnMsgIdAndTxt ( const char *  id,
const char *  fmt,
  ... 
)

Definition at line 5130 of file mex.cc.

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

◆ mexWarnMsgTxt()

void mexWarnMsgTxt ( const char *  s)

Definition at line 5107 of file mex.cc.

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

◆ mx_to_ov_args()

static octave_value_list mx_to_ov_args ( int  nargin,
mxArray argin[] 
)
inlinestatic

Definition at line 4868 of file mex.cc.

References mxArray::as_octave_value().

Referenced by mexCallMATLAB().

◆ mxAddField()

int mxAddField ( mxArray ptr,
const char *  key 
)

Definition at line 4699 of file mex.cc.

References mxArray::add_field().

◆ mxArrayToString()

char* mxArrayToString ( const mxArray ptr)

Definition at line 4761 of file mex.cc.

References mxArray::array_to_string().

◆ mxCalcSingleSubscript()

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

Definition at line 4767 of file mex.cc.

References mxArray::calc_single_subscript().

◆ mxCalloc()

void* mxCalloc ( std::size_t  n,
std::size_t  size 
)

Definition at line 3853 of file mex.cc.

References mex::calloc(), mex_context, and n.

◆ mxCreateCellArray()

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

Definition at line 3894 of file mex.cc.

References maybe_mark_array().

◆ mxCreateCellArray_interleaved()

mxArray * mxCreateCellArray_interleaved ( mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3888 of file mex.cc.

References maybe_mark_array().

◆ mxCreateCellMatrix()

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().

◆ mxCreateCellMatrix_interleaved()

mxArray * mxCreateCellMatrix_interleaved ( mwSize  m,
mwSize  n 
)

Definition at line 3900 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateCharArray()

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

Definition at line 3918 of file mex.cc.

References maybe_mark_array().

◆ mxCreateCharArray_interleaved()

mxArray * mxCreateCharArray_interleaved ( mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3912 of file mex.cc.

References maybe_mark_array().

◆ mxCreateCharMatrixFromStrings()

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

Definition at line 3930 of file mex.cc.

References m, and maybe_mark_array().

◆ mxCreateCharMatrixFromStrings_interleaved()

mxArray * mxCreateCharMatrixFromStrings_interleaved ( mwSize  m,
const char **  str 
)

Definition at line 3924 of file mex.cc.

References m, and maybe_mark_array().

◆ mxCreateDoubleMatrix()

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

Definition at line 3942 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateDoubleMatrix_interleaved()

mxArray * mxCreateDoubleMatrix_interleaved ( mwSize  nr,
mwSize  nc,
mxComplexity  flag 
)

Definition at line 3936 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateDoubleScalar()

mxArray * mxCreateDoubleScalar ( double  val)

Definition at line 3954 of file mex.cc.

References maybe_mark_array().

◆ mxCreateDoubleScalar_interleaved()

mxArray * mxCreateDoubleScalar_interleaved ( double  val)

Definition at line 3948 of file mex.cc.

References maybe_mark_array().

◆ mxCreateLogicalArray()

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

Definition at line 3966 of file mex.cc.

References maybe_mark_array().

◆ mxCreateLogicalArray_interleaved()

mxArray * mxCreateLogicalArray_interleaved ( mwSize  ndims,
const mwSize *  dims 
)

Definition at line 3960 of file mex.cc.

References maybe_mark_array().

◆ mxCreateLogicalMatrix()

mxArray * mxCreateLogicalMatrix ( mwSize  m,
mwSize  n 
)

Definition at line 3978 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateLogicalMatrix_interleaved()

mxArray * mxCreateLogicalMatrix_interleaved ( mwSize  m,
mwSize  n 
)

Definition at line 3972 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateLogicalScalar()

mxArray * mxCreateLogicalScalar ( mxLogical  val)

Definition at line 3990 of file mex.cc.

References maybe_mark_array().

◆ mxCreateLogicalScalar_interleaved()

mxArray * mxCreateLogicalScalar_interleaved ( mxLogical  val)

Definition at line 3984 of file mex.cc.

References maybe_mark_array().

◆ mxCreateNumericArray()

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

Definition at line 4003 of file mex.cc.

References maybe_mark_array().

◆ mxCreateNumericArray_interleaved()

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

Definition at line 3996 of file mex.cc.

References maybe_mark_array().

◆ mxCreateNumericMatrix()

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.

◆ mxCreateNumericMatrix_interleaved()

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

Definition at line 4010 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateSparse()

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.

◆ mxCreateSparse_interleaved()

mxArray * mxCreateSparse_interleaved ( mwSize  m,
mwSize  n,
mwSize  nzmax,
mxComplexity  flag 
)

Definition at line 4054 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateSparseLogicalMatrix()

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

Definition at line 4074 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateSparseLogicalMatrix_interleaved()

mxArray * mxCreateSparseLogicalMatrix_interleaved ( mwSize  m,
mwSize  n,
mwSize  nzmax 
)

Definition at line 4068 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateString()

mxArray * mxCreateString ( const char *  str)

Definition at line 4086 of file mex.cc.

References maybe_mark_array().

Referenced by mexCallMATLABWithTrap(), and mexEvalStringWithTrap().

◆ mxCreateString_interleaved()

mxArray * mxCreateString_interleaved ( const char *  str)

Definition at line 4080 of file mex.cc.

References maybe_mark_array().

◆ mxCreateStructArray()

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().

◆ mxCreateStructArray_interleaved()

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

Definition at line 4092 of file mex.cc.

References maybe_mark_array().

◆ mxCreateStructMatrix()

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().

◆ mxCreateStructMatrix_interleaved()

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

Definition at line 4106 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxCreateUninitNumericArray()

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

Definition at line 4032 of file mex.cc.

References maybe_mark_array().

◆ mxCreateUninitNumericArray_interleaved()

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

Definition at line 4024 of file mex.cc.

References maybe_mark_array().

◆ mxCreateUninitNumericMatrix()

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.

◆ mxCreateUninitNumericMatrix_interleaved()

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

Definition at line 4040 of file mex.cc.

References m, maybe_mark_array(), and n.

◆ mxDestroyArray()

void mxDestroyArray ( mxArray ptr)

Definition at line 4128 of file mex.cc.

References mex::free_value(), and mex_context.

◆ mxDuplicateArray()

mxArray* mxDuplicateArray ( const mxArray ptr)

Definition at line 4121 of file mex.cc.

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

◆ mxFree()

◆ mxGetCell()

mxArray* mxGetCell ( const mxArray ptr,
mwIndex  idx 
)

Definition at line 4649 of file mex.cc.

References mxArray::get_cell().

◆ mxGetChars()

mxChar* mxGetChars ( const mxArray ptr)

Definition at line 4352 of file mex.cc.

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

◆ mxGetClassID()

mxClassID mxGetClassID ( const mxArray ptr)

Definition at line 4617 of file mex.cc.

References mxArray::get_class_id().

◆ mxGetClassName()

const char* mxGetClassName ( const mxArray ptr)

Definition at line 4623 of file mex.cc.

References mxArray::get_class_name().

◆ mxGetComplexDoubles()

mxComplexDouble * mxGetComplexDoubles ( const mxArray p)

Definition at line 4434 of file mex.cc.

References mxArray::get_complex_doubles().

◆ mxGetComplexSingles()

mxComplexSingle * mxGetComplexSingles ( const mxArray p)

Definition at line 4439 of file mex.cc.

References mxArray::get_complex_singles().

◆ mxGetData()

void* mxGetData ( const mxArray ptr)

Definition at line 4367 of file mex.cc.

References mxArray::get_data().

◆ mxGetDimensions()

const mwSize* mxGetDimensions ( const mxArray ptr)

Definition at line 4300 of file mex.cc.

References mxArray::get_dimensions().

◆ mxGetDoubles()

mxDouble * mxGetDoubles ( const mxArray p)

Definition at line 4384 of file mex.cc.

References mxArray::get_doubles().

◆ mxGetElementSize()

std::size_t mxGetElementSize ( const mxArray ptr)

Definition at line 4773 of file mex.cc.

References mxArray::get_element_size().

◆ mxGetEps()

double mxGetEps ( void  )

Definition at line 3834 of file mex.cc.

◆ mxGetField()

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

Definition at line 4711 of file mex.cc.

References mxGetFieldByNumber(), and mxGetFieldNumber().

◆ mxGetFieldByNumber()

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()

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()

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()

void * mxGetImagData ( const mxArray ptr)

Definition at line 4379 of file mex.cc.

References mxArray::get_imag_data().

◆ mxGetInf()

double mxGetInf ( void  )

Definition at line 3840 of file mex.cc.

References lo_ieee_inf_value().

◆ mxGetInt16s()

mxInt16 * mxGetInt16s ( const mxArray p)

Definition at line 4399 of file mex.cc.

References mxArray::get_int16s().

◆ mxGetInt32s()

mxInt32 * mxGetInt32s ( const mxArray p)

Definition at line 4404 of file mex.cc.

References mxArray::get_int32s().

◆ mxGetInt64s()

mxInt64 * mxGetInt64s ( const mxArray p)

Definition at line 4409 of file mex.cc.

References mxArray::get_int64s().

◆ mxGetInt8s()

mxInt8 * mxGetInt8s ( const mxArray p)

Definition at line 4394 of file mex.cc.

References mxArray::get_int8s().

◆ mxGetIr()

mwIndex* mxGetIr ( const mxArray ptr)

Definition at line 4662 of file mex.cc.

References mxArray::get_ir().

◆ mxGetJc()

mwIndex* mxGetJc ( const mxArray ptr)

Definition at line 4668 of file mex.cc.

References mxArray::get_jc().

◆ mxGetLogicals()

mxLogical* mxGetLogicals ( const mxArray ptr)

Definition at line 4361 of file mex.cc.

References mxArray::get_data().

◆ mxGetM()

std::size_t mxGetM ( const mxArray ptr)

Definition at line 4288 of file mex.cc.

References mxArray::get_m().

◆ mxGetN()

std::size_t mxGetN ( const mxArray ptr)

Definition at line 4294 of file mex.cc.

References mxArray::get_n().

◆ mxGetNaN()

double mxGetNaN ( void  )

Definition at line 3846 of file mex.cc.

References lo_ieee_nan_value().

◆ mxGetNumberOfDimensions()

mwSize mxGetNumberOfDimensions ( const mxArray ptr)

Definition at line 4306 of file mex.cc.

References mxArray::get_number_of_dimensions().

◆ mxGetNumberOfElements()

std::size_t mxGetNumberOfElements ( const mxArray ptr)

Definition at line 4312 of file mex.cc.

References mxArray::get_number_of_elements().

◆ mxGetNumberOfFields()

int mxGetNumberOfFields ( const mxArray ptr)

Definition at line 4737 of file mex.cc.

References mxArray::get_number_of_fields().

◆ mxGetNzmax()

mwSize mxGetNzmax ( const mxArray ptr)

Definition at line 4674 of file mex.cc.

References mxArray::get_nzmax().

◆ mxGetPi()

double * mxGetPi ( const mxArray ptr)

Definition at line 4373 of file mex.cc.

References mxArray::get_imag_data().

◆ mxGetPr()

double* mxGetPr ( const mxArray ptr)

Definition at line 4340 of file mex.cc.

References mxArray::get_data().

◆ mxGetProperty()

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

Definition at line 4642 of file mex.cc.

References mxArray::get_property().

◆ mxGetScalar()

double mxGetScalar ( const mxArray ptr)

Definition at line 4346 of file mex.cc.

References mxArray::get_scalar().

◆ mxGetSingles()

mxSingle * mxGetSingles ( const mxArray p)

Definition at line 4389 of file mex.cc.

References mxArray::get_singles().

◆ mxGetString()

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

Definition at line 4755 of file mex.cc.

References mxArray::get_string().

◆ mxGetUint16s()

mxUint16 * mxGetUint16s ( const mxArray p)

Definition at line 4419 of file mex.cc.

References mxArray::get_uint16s().

◆ mxGetUint32s()

mxUint32 * mxGetUint32s ( const mxArray p)

Definition at line 4424 of file mex.cc.

References mxArray::get_uint32s().

◆ mxGetUint64s()

mxUint64 * mxGetUint64s ( const mxArray p)

Definition at line 4429 of file mex.cc.

References mxArray::get_uint64s().

◆ mxGetUint8s()

mxUint8 * mxGetUint8s ( const mxArray p)

Definition at line 4414 of file mex.cc.

References mxArray::get_uint8s().

◆ mxIsCell()

bool mxIsCell ( const mxArray ptr)

Definition at line 4136 of file mex.cc.

References mxArray::iscell().

◆ mxIsChar()

bool mxIsChar ( const mxArray ptr)

Definition at line 4142 of file mex.cc.

References mxArray::is_char().

Referenced by mxGetChars().

◆ mxIsClass()

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

Definition at line 4148 of file mex.cc.

References mxArray::is_class().

◆ mxIsComplex()

bool mxIsComplex ( const mxArray ptr)

Definition at line 4154 of file mex.cc.

References mxArray::is_complex().

◆ mxIsDouble()

bool mxIsDouble ( const mxArray ptr)

Definition at line 4160 of file mex.cc.

References mxArray::is_double().

◆ mxIsEmpty()

bool mxIsEmpty ( const mxArray ptr)

Definition at line 4265 of file mex.cc.

References mxArray::isempty().

◆ mxIsFinite()

bool mxIsFinite ( const double  v)

Definition at line 3816 of file mex.cc.

References lo_ieee_isfinite.

◆ mxIsFromGlobalWS()

bool mxIsFromGlobalWS ( const mxArray ptr)

Definition at line 4279 of file mex.cc.

References mexErrMsgTxt().

Referenced by mexIsGlobal().

◆ mxIsFunctionHandle()

bool mxIsFunctionHandle ( const mxArray ptr)

Definition at line 4166 of file mex.cc.

References mxArray::is_function_handle().

◆ mxIsInf()

bool mxIsInf ( const double  v)

Definition at line 3822 of file mex.cc.

References lo_ieee_isinf.

◆ mxIsInt16()

bool mxIsInt16 ( const mxArray ptr)

Definition at line 4172 of file mex.cc.

References mxArray::is_int16().

◆ mxIsInt32()

bool mxIsInt32 ( const mxArray ptr)

Definition at line 4178 of file mex.cc.

References mxArray::is_int32().

◆ mxIsInt64()

bool mxIsInt64 ( const mxArray ptr)

Definition at line 4184 of file mex.cc.

References mxArray::is_int64().

◆ mxIsInt8()

bool mxIsInt8 ( const mxArray ptr)

Definition at line 4190 of file mex.cc.

References mxArray::is_int8().

◆ mxIsLogical()

bool mxIsLogical ( const mxArray ptr)

Definition at line 4196 of file mex.cc.

References mxArray::is_logical().

◆ mxIsLogicalScalar()

bool mxIsLogicalScalar ( const mxArray ptr)

Definition at line 4251 of file mex.cc.

References mxArray::is_logical_scalar().

◆ mxIsLogicalScalarTrue()

bool mxIsLogicalScalarTrue ( const mxArray ptr)

Definition at line 4258 of file mex.cc.

References mxArray::is_logical_scalar_true().

◆ mxIsNaN()

bool mxIsNaN ( const double  v)

Definition at line 3828 of file mex.cc.

References lo_ieee_isnan.

◆ mxIsNumeric()

bool mxIsNumeric ( const mxArray ptr)

Definition at line 4202 of file mex.cc.

References mxArray::is_numeric().

◆ mxIsScalar()

bool mxIsScalar ( const mxArray ptr)

Definition at line 4271 of file mex.cc.

References mxArray::is_scalar().

◆ mxIsSingle()

bool mxIsSingle ( const mxArray ptr)

Definition at line 4208 of file mex.cc.

References mxArray::is_single().

◆ mxIsSparse()

bool mxIsSparse ( const mxArray ptr)

Definition at line 4214 of file mex.cc.

References mxArray::is_sparse().

◆ mxIsStruct()

bool mxIsStruct ( const mxArray ptr)

Definition at line 4220 of file mex.cc.

References mxArray::is_struct().

◆ mxIsUint16()

bool mxIsUint16 ( const mxArray ptr)

Definition at line 4226 of file mex.cc.

References mxArray::is_uint16().

◆ mxIsUint32()

bool mxIsUint32 ( const mxArray ptr)

Definition at line 4232 of file mex.cc.

References mxArray::is_uint32().

◆ mxIsUint64()

bool mxIsUint64 ( const mxArray ptr)

Definition at line 4238 of file mex.cc.

References mxArray::is_uint64().

◆ mxIsUint8()

bool mxIsUint8 ( const mxArray ptr)

Definition at line 4244 of file mex.cc.

References mxArray::is_uint8().

◆ mxMakeArrayComplex()

OCTINTERP_API int mxMakeArrayComplex ( mxArray ptr)

◆ mxMakeArrayReal()

OCTINTERP_API int mxMakeArrayReal ( mxArray ptr)

◆ mxMalloc()

void* mxMalloc ( std::size_t  n)

Definition at line 3859 of file mex.cc.

References mex::malloc(), mex_context, n, and xmalloc().

◆ mxRealloc()

void* mxRealloc ( void *  ptr,
std::size_t  size 
)

Definition at line 3865 of file mex.cc.

References mex_context, mex::realloc(), and xrealloc().

Referenced by mxArray_struct::add_field().

◆ mxRemoveField()

void mxRemoveField ( mxArray ptr,
int  key_num 
)

Definition at line 4705 of file mex.cc.

References mxArray::remove_field().

◆ mxSetCell()

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

Definition at line 4655 of file mex.cc.

References mxArray::set_cell().

◆ mxSetClassName()

void mxSetClassName ( mxArray ptr,
const char *  name 
)

Definition at line 4629 of file mex.cc.

References mxArray::set_class_name().

◆ mxSetComplexDoubles()

int mxSetComplexDoubles ( mxArray p,
mxComplexDouble *  d 
)

Definition at line 4550 of file mex.cc.

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

◆ mxSetComplexSingles()

int mxSetComplexSingles ( mxArray p,
mxComplexSingle *  d 
)

Definition at line 4555 of file mex.cc.

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

◆ mxSetData()

void mxSetData ( mxArray ptr,
void *  pr 
)

Definition at line 4495 of file mex.cc.

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

◆ mxSetDimensions()

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

Definition at line 4331 of file mex.cc.

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

◆ mxSetDoubles()

int mxSetDoubles ( mxArray p,
mxDouble *  d 
)

Definition at line 4500 of file mex.cc.

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

◆ mxSetField()

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

Definition at line 4724 of file mex.cc.

References mxGetFieldNumber(), and mxSetFieldByNumber().

◆ mxSetFieldByNumber()

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()

void mxSetImagData ( mxArray ptr,
void *  pi 
)

Definition at line 4610 of file mex.cc.

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

◆ mxSetInt16s()

int mxSetInt16s ( mxArray p,
mxInt16 *  d 
)

Definition at line 4515 of file mex.cc.

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

◆ mxSetInt32s()

int mxSetInt32s ( mxArray p,
mxInt32 *  d 
)

Definition at line 4520 of file mex.cc.

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

◆ mxSetInt64s()

int mxSetInt64s ( mxArray p,
mxInt64 *  d 
)

Definition at line 4525 of file mex.cc.

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

◆ mxSetInt8s()

int mxSetInt8s ( mxArray p,
mxInt8 *  d 
)

Definition at line 4510 of file mex.cc.

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

◆ mxSetIr()

void mxSetIr ( mxArray ptr,
mwIndex *  ir 
)

Definition at line 4680 of file mex.cc.

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

◆ mxSetJc()

void mxSetJc ( mxArray ptr,
mwIndex *  jc 
)

Definition at line 4686 of file mex.cc.

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

◆ mxSetM()

void mxSetM ( mxArray ptr,
mwSize  m 
)

Definition at line 4319 of file mex.cc.

References m, and mxArray::set_m().

◆ mxSetN()

void mxSetN ( mxArray ptr,
mwSize  n 
)

Definition at line 4325 of file mex.cc.

References n, and mxArray::set_n().

◆ mxSetNzmax()

void mxSetNzmax ( mxArray ptr,
mwSize  nzmax 
)

Definition at line 4692 of file mex.cc.

References mxArray::set_nzmax().

◆ mxSetPi()

void mxSetPi ( mxArray ptr,
double *  pi 
)

Definition at line 4604 of file mex.cc.

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

◆ mxSetPr()

void mxSetPr ( mxArray ptr,
double *  pr 
)

Definition at line 4489 of file mex.cc.

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

◆ mxSetProperty()

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().

◆ mxSetSingles()

int mxSetSingles ( mxArray p,
mxSingle *  d 
)

Definition at line 4505 of file mex.cc.

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

◆ mxSetUint16s()

int mxSetUint16s ( mxArray p,
mxUint16 *  d 
)

Definition at line 4535 of file mex.cc.

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

◆ mxSetUint32s()

int mxSetUint32s ( mxArray p,
mxUint32 *  d 
)

Definition at line 4540 of file mex.cc.

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

◆ mxSetUint64s()

int mxSetUint64s ( mxArray p,
mxUint64 *  d 
)

Definition at line 4545 of file mex.cc.

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

◆ mxSetUint8s()

int mxSetUint8s ( mxArray p,
mxUint8 *  d 
)

Definition at line 4530 of file mex.cc.

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

◆ xfree()

static void xfree ( void *  ptr)
static

Definition at line 291 of file mex.cc.

References free().

Referenced by mex::~mex(), mex::free(), and mxFree().

◆ xmalloc()

static void* xmalloc ( size_t  n)
static

Definition at line 266 of file mex.cc.

References malloc(), and n.

Referenced by mxArray::malloc(), mex::malloc_unmarked(), and mxMalloc().

◆ xrealloc()

static void* xrealloc ( void *  ptr,
size_t  n 
)
static

Definition at line 278 of file mex.cc.

References n.

Referenced by mxRealloc(), and mex::realloc().

Variable Documentation

◆ mex_context

◆ mex_lock_count

std::map<std::string, int> mex_lock_count

Definition at line 5369 of file mex.cc.

Referenced by mexLock(), and mexUnlock().