MATLAB Compiler Previous page   Next Page

int NumberOfNonZeros() const

Return number of nonzero elements for sparse array.

C++ syntax

Arguments

None

Return value

Actual number of nonzero elements in this array.

Description

Use this method to determine the size of the of the array's data. If the underlying array is not sparse, this returns the same value as NumberOfElements().


Previous page  int NumberOfElements() const int MaximumNonZeros() const Next page

© 1994-2005 The MathWorks, Inc.