Constructor | Description |
Full Usage:
SparseVector(n)
Parameters:
int
-
Length of the vector
|
Constructs a sparse vector with all zeros
|
Full Usage:
SparseVector(items, indices, n)
Parameters:
float[]
-
The nonzero entries
indices : int[]
-
The locations of the nonzeros
n : int
-
Length of the vector
|
Constructs a sparse vector with defined nonzero elements
|
Instance member | Description |
|
|
Full Usage:
this.[arg1]
Returns: int
The ith element of a sparse vector
|
Public accessor method
|
Full Usage:
this.Length
Returns: int
|
Length of the sparse vector
|