Element wise access function
Element wise access function
* @param index index of the accessed element
index of the accessed element
element with index
Copies the vector instance
Copies the vector instance
Copy of the SparseVector instance
Returns the dot product of the recipient and the argument
Returns the dot product of the recipient and the argument
a Vector
a scalar double of dot product
Magnitude of a vector
Returns the outer product (a.k.a.
Returns the outer product (a.k.a. Kronecker product) of this
with other
. The result is
given in SparseMatrix representation.
a Vector
the SparseMatrix which equals the outer product of this
with other.
Number of elements in a vector
Number of elements in a vector
The number of elements of the vector
Converts the SparseVector to a DenseVector
Converts the SparseVector to a DenseVector
The DenseVector out of the SparseVector
Updates the element at the given index with the provided value
Updates the element at the given index with the provided value
Index whose value is updated.
The value used to update the index.
Sparse vector implementation storing the data in two arrays. One index contains the sorted indices of the non-zero vector entries and the other the corresponding vector entries