Click or drag to resize
SparseVector Methods

The SparseVector type exposes the following members.

Methods
  NameDescription
Public methodDot(Double)
Returns the inner product of this vector with the specified array.
Public methodDot(SparseVector)
Returns the inner product of this vector with the specified vector.
Public methodGet
Returns the ith coordinate of this vector.
Public methodMagnitude
Returns the magnitude of this vector. This is also known as the L2 norm or the Euclidean norm.
Public methodStatic memberMainTest
Demo test the SparseVector data type.
Public methodNnz
Returns the number of nonzero entries in this vector.
Public methodPlus
Returns the sum of this vector and the specified vector.
Public methodPut
Sets the ith coordinate of this vector to the specified value.
Public methodScale
Returns the scalar-vector product of this vector with the specified scalar.
Public methodToString
Returns a string representation of this vector.
(Overrides ObjectToString.)
Top
See Also