Package | Description |
---|---|
org.apache.flink.ml.math |
Modifier and Type | Method and Description |
---|---|
SparseVector |
SparseVector.copy()
Copies the vector instance
|
static SparseVector |
SparseVector.fromCOO(int size,
scala.collection.Iterable<scala.Tuple2<Object,Object>> entries)
Constructs a sparse vector from a coordinate list (COO) representation where each entry
is stored as a tuple of (index, value).
|
SparseVector |
SparseVector$.fromCOO(int size,
scala.collection.Iterable<scala.Tuple2<Object,Object>> entries)
Constructs a sparse vector from a coordinate list (COO) representation where each entry
is stored as a tuple of (index, value).
|
static SparseVector |
SparseVector.fromCOO(int size,
scala.collection.Seq<scala.Tuple2<Object,Object>> entries)
Constructs a sparse vector from a coordinate list (COO) representation where each entry
is stored as a tuple of (index, value).
|
SparseVector |
SparseVector$.fromCOO(int size,
scala.collection.Seq<scala.Tuple2<Object,Object>> entries)
Constructs a sparse vector from a coordinate list (COO) representation where each entry
is stored as a tuple of (index, value).
|
static SparseVector |
SparseVector.fromCOO(int size,
scala.Tuple2<Object,Object> entry)
Convenience method to be able to instantiate a SparseVector with a single element.
|
SparseVector |
SparseVector$.fromCOO(int size,
scala.Tuple2<Object,Object> entry)
Convenience method to be able to instantiate a SparseVector with a single element.
|
SparseVector |
DenseVector.toSparseVector()
Convert to a
SparseVector |
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.