public class DistributedRowMatrix$ extends Object
Modifier and Type | Field and Description |
---|---|
static DistributedRowMatrix$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
DistributedRowMatrix$() |
Modifier and Type | Method and Description |
---|---|
DistributedRowMatrix |
fromCOO(DataSet<scala.Tuple3<Object,Object,Object>> data,
int numRows,
int numCols,
boolean isSorted)
Builds a
DistributedRowMatrix from a DataSet in COO. |
public static final DistributedRowMatrix$ MODULE$
public DistributedRowMatrix fromCOO(DataSet<scala.Tuple3<Object,Object,Object>> data, int numRows, int numCols, boolean isSorted)
DistributedRowMatrix
from a DataSet
in COO.
data
- DataSet
which contains matrix elements in the form of
(row index, column index, value)numRows
- Number of rowsnumCols
- Number of columnsisSorted
- If false, sorts the row to properly build the matrix representation.
If already sorted, set this parameter to true to skip sorting.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.