public class CoordinateMatrix extends Object implements DistributedMatrix
Constructor and Description |
---|
CoordinateMatrix(RDD<MatrixEntry> entries) |
CoordinateMatrix(RDD<MatrixEntry> entries,
long nRows,
long nCols) |
Modifier and Type | Method and Description |
---|---|
RDD<MatrixEntry> |
entries() |
long |
numCols()
Gets or computes the number of columns.
|
long |
numRows()
Gets or computes the number of rows.
|
BlockMatrix |
toBlockMatrix() |
BlockMatrix |
toBlockMatrix(int rowsPerBlock,
int colsPerBlock) |
IndexedRowMatrix |
toIndexedRowMatrix() |
RowMatrix |
toRowMatrix() |
CoordinateMatrix |
transpose() |
public CoordinateMatrix(RDD<MatrixEntry> entries, long nRows, long nCols)
public CoordinateMatrix(RDD<MatrixEntry> entries)
public RDD<MatrixEntry> entries()
public long numCols()
DistributedMatrix
numCols
in interface DistributedMatrix
public long numRows()
DistributedMatrix
numRows
in interface DistributedMatrix
public CoordinateMatrix transpose()
public IndexedRowMatrix toIndexedRowMatrix()
public RowMatrix toRowMatrix()
public BlockMatrix toBlockMatrix()
public BlockMatrix toBlockMatrix(int rowsPerBlock, int colsPerBlock)