pyspark.mllib.linalg.
Matrices
Methods
dense(numRows, numCols, values)
dense
Create a DenseMatrix
fromML(mat)
fromML
Convert a matrix from the new mllib-local representation.
sparse(numRows, numCols, colPtrs, …)
sparse
Create a SparseMatrix
Methods Documentation
Convert a matrix from the new mllib-local representation. This does NOT copy the data; it copies references.
New in version 2.0.0.
pyspark.ml.linalg.Matrix
pyspark.mllib.linalg.Matrix