public class SparseMatrix$ extends Object implements scala.Serializable
Modifier and Type | Field and Description |
---|---|
static SparseMatrix$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
SparseMatrix$() |
Modifier and Type | Method and Description |
---|---|
SparseMatrix |
fromCOO(int numRows,
int numCols,
scala.collection.Iterable<scala.Tuple3<Object,Object,Object>> entries)
Constructs a sparse matrix from a coordinate list (COO) representation where each entry
is stored as a tuple of (rowIndex, columnIndex, value).
|
SparseMatrix |
fromCOO(int numRows,
int numCols,
scala.collection.Seq<scala.Tuple3<Object,Object,Object>> entries)
Constructs a sparse matrix from a coordinate list (COO) representation where each entry
is stored as a tuple of (rowIndex, columnIndex, value).
|
SparseMatrix |
fromCOO(int numRows,
int numCols,
scala.Tuple3<Object,Object,Object> entry)
Convenience method to convert a single tuple with an integer value into a SparseMatrix.
|
public static final SparseMatrix$ MODULE$
public SparseMatrix fromCOO(int numRows, int numCols, scala.collection.Seq<scala.Tuple3<Object,Object,Object>> entries)
numRows
- Number of rowsnumCols
- Number of columnsentries
- Data entries in the matrixpublic SparseMatrix fromCOO(int numRows, int numCols, scala.collection.Iterable<scala.Tuple3<Object,Object,Object>> entries)
numRows
- Number of rowsnumCols
- Number of columnsentries
- Data entries in the matrixpublic SparseMatrix fromCOO(int numRows, int numCols, scala.Tuple3<Object,Object,Object> entry)
numRows
- Number of rowsnumCols
- Number of columnsentry
- Data entries in the matrixCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.