Determine whether array represents data as single-precision, floating-point numbers
#include "matrix.h" bool mxIsSingle(const mxArray *pm);
#include "fintrf.h" integer*4 mxIsSingle(pm) mwPointer pm
pm
Pointer to an mxArray
Logical 1
(true
) if the array stores its data as
single-precision, floating-point numbers, and logical 0
(false
) otherwise.
Use mxIsSingle
to determine whether the specified array
represents its real and imaginary data as single-precision, floating-point
numbers.
In C, calling mxIsSingle
is equivalent to calling:
mxGetClassID(pm) == mxSINGLE_CLASS
In Fortran, calling mxIsSingle
is equivalent to calling:
mxGetClassName(pm) .eq. 'single'