| SparseVector Methods |
The SparseVector type exposes the following members.
| Name | Description | |
|---|---|---|
| Dot(Double) |
Returns the inner product of this vector with the specified array. | |
| Dot(SparseVector) |
Returns the inner product of this vector with the specified vector. | |
| Get |
Returns the ith coordinate of this vector. | |
| Magnitude |
Returns the magnitude of this vector.
This is also known as the L2 norm or the Euclidean norm. | |
| MainTest |
Demo test the SparseVector data type. | |
| Nnz |
Returns the number of nonzero entries in this vector. | |
| Plus |
Returns the sum of this vector and the specified vector. | |
| Put |
Sets the ith coordinate of this vector to the specified value. | |
| Scale |
Returns the scalar-vector product of this vector with the specified scalar. | |
| ToString |
Returns a string representation of this vector. (Overrides ObjectToString.) |