User`s guide
mwSize MaximumNonZeros() const
Purpose Return maximum number of nonzero elements for sparse array
C++
Syntax
#include "mclcppclass. h"
mwArray a(2, 2, mxDOUBLE_CLASS);
int n = a.MaximumNonZeros( );// Sh ould ret urn 4
Arguments None
Return
Value
Number of allo cate d n onzero elements in array.
Description Use this method to determ ine the allocated siz e of the of the array’s
data. If the underlying array is not sparse, this returns the same value
as
NumberOfElements().
Note This meth od does not analyze the actual values of the array
elements.
C-53