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
Put Method
Sets the ith coordinate of this vector to the specified value.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
void
Put
(
int
i
,
double
value
)
Parameters
i
Type:
System
Int32
the index
value
Type:
System
Double
the new value
Exceptions
Exception
Condition
IndexOutOfRangeException
unless i is between 0 and d-1
See Also
Reference
SparseVector Class
Algs4Net Namespace