| MATLAB® | ![]() |
#include "matrix.h" bool mxIsSparse(const mxArray *pm);
integer*4 mxIsSparse(pm) mwPointer pm
Pointer to an mxArray
Logical 1 (true) if pm points to a sparse mxArray, and logical 0 (false) otherwise. A false return value means that pm points to a full mxArray or that pm does not point to a legal mxArray.
Use mxIsSparse to determine whether pm points to a sparse mxArray. Many routines (for example, mxGetIr and mxGetJc) require a sparse mxArray as input.
See phonebook.c in the refbook subdirectory of the examples directory.
For additional examples, see mxgetnzmax.c, mxsetdimensions.c, and mxsetnzmax.c in the mx subdirectory of the examples directory.
mxGetIr, mxGetJc, mxCreateSparse
![]() | mxIsSingle (C and Fortran) | mxIsStruct (C and Fortran) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |