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
- numCols
- entries
- public SparseMatrix fromCOO(int numRows, int numCols, scala.collection.Iterable<scala.Tuple3<Object,Object,Object>> entries)
numRows
- numCols
- entries
- public SparseMatrix fromCOO(int numRows, int numCols, scala.Tuple3<Object,Object,Object> entry)
numRows
- numCols
- entry
- Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.