public class IndexedRowMatrix extends java.lang.Object implements DistributedMatrix
Constructor and Description |
---|
IndexedRowMatrix(RDD<IndexedRow> rows) |
IndexedRowMatrix(RDD<IndexedRow> rows,
long nRows,
int nCols) |
Modifier and Type | Method and Description |
---|---|
CoordinateMatrix |
columnSimilarities() |
Matrix |
computeGramianMatrix() |
SingularValueDecomposition<IndexedRowMatrix,Matrix> |
computeSVD(int k,
boolean computeU,
double rCond) |
IndexedRowMatrix |
multiply(Matrix B) |
long |
numCols()
Gets or computes the number of columns.
|
long |
numRows()
Gets or computes the number of rows.
|
RDD<IndexedRow> |
rows() |
BlockMatrix |
toBlockMatrix() |
BlockMatrix |
toBlockMatrix(int rowsPerBlock,
int colsPerBlock) |
CoordinateMatrix |
toCoordinateMatrix() |
RowMatrix |
toRowMatrix() |
public IndexedRowMatrix(RDD<IndexedRow> rows, long nRows, int nCols)
public IndexedRowMatrix(RDD<IndexedRow> rows)
public RDD<IndexedRow> rows()
public long numCols()
DistributedMatrix
numCols
in interface DistributedMatrix
public long numRows()
DistributedMatrix
numRows
in interface DistributedMatrix
public CoordinateMatrix columnSimilarities()
public RowMatrix toRowMatrix()
public BlockMatrix toBlockMatrix()
public BlockMatrix toBlockMatrix(int rowsPerBlock, int colsPerBlock)
public CoordinateMatrix toCoordinateMatrix()
public SingularValueDecomposition<IndexedRowMatrix,Matrix> computeSVD(int k, boolean computeU, double rCond)
public IndexedRowMatrix multiply(Matrix B)
public Matrix computeGramianMatrix()