Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
SparseVector Class
SparseVector Methods
Dot Method
Get Method
Magnitude Method
MainTest Method
Nnz Method
Plus Method
Put Method
Scale Method
ToString Method
SparseVector
Nnz Method
Returns the number of nonzero entries in this vector.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
int
Nnz
()
Return Value
Type:
Int32
the number of nonzero entries in this vector
See Also
Reference
SparseVector Class
Algs4Net Namespace