pyspark.ml.linalg.
Matrices
Methods
dense(numRows, numCols, values)
dense
Create a DenseMatrix
sparse(numRows, numCols, colPtrs, …)
sparse
Create a SparseMatrix
Methods Documentation