| MATLAB Compiler | ![]() |
int MaximumNonZeros() const
Return maximum number of nonzero elements for sparse array. If the underlying array is not sparse, returns the same value as NumberOfElements().
C++ syntax
#include "mclcppclass.h" mwArray a(2, 2, mxDOUBLE_CLASS); int n = a.MaximumNonZeros();// Should return 4
Arguments
Return value
Number of allocated nonzero elements in this array.
Description
Use this method to determine the allocated size of the of the array's data. If the underlying array is not sparse, this returns the same value as NumberOfElements().
| int NumberOfNonZeros() const | int NumberOfDimensions() const | ![]() |
© 1994-2005 The MathWorks, Inc.