User`s guide
4 Using MWArra y Classes
Method Usage
maximumNonZeros()
Returns the current allocated capacity of
nonzero elements for a sparse array.
numberOfDimensions()
Returns the number of dimensions in the
array.
numberOfElements()
Returns the number of elements in the
array.
numberOfNonZeros()
Returns the current number of nonzero
elements for a spars e array.
rowIndex()
Returns the row index (first dimension)
of e ach eleme nt in the array. Call this
method to get an array of row indices for
the nonzero elements of a sparse array.
set(int, Object)
Replaces the element at the one-based
index with the supplied value.
set(int[], Object)
Replaces the element at the one-based
index array with the supplied value.
4-6