Convenience method to be able to instantiate a SparseVector with a single element.
Convenience method to be able to instantiate a SparseVector with a single element. The Scala type inference mechanism cannot infer that the second tuple value has to be of type Double if only a single tuple is provided.
The number of elements in the vector
The value in the vector
a new SparseVector
Constructs a sparse vector from a coordinate list (COO) representation where each entry is stored as a tuple of (index, value).
Constructs a sparse vector from a coordinate list (COO) representation where each entry is stored as a tuple of (index, value).
The number of elements in the vector
An iterator supplying the values in the vector
a new SparseVector
Constructs a sparse vector from a coordinate list (COO) representation where each entry is stored as a tuple of (index, value).
Constructs a sparse vector from a coordinate list (COO) representation where each entry is stored as a tuple of (index, value).
The number of elements in the vector
The values in the vector
a new SparseVector
BreezeVectorConverter implementation for org.apache.flink.ml.math.SparseVector
BreezeVectorConverter implementation for org.apache.flink.ml.math.SparseVector
This allows to convert Breeze vectors into SparseVector