Matrices

class pyspark.ml.linalg.Matrices[source]

Methods

dense(numRows, numCols, values)

Create a DenseMatrix

sparse(numRows, numCols, colPtrs, …)

Create a SparseMatrix

Methods Documentation

static dense(numRows, numCols, values)[source]

Create a DenseMatrix

static sparse(numRows, numCols, colPtrs, rowIndices, values)[source]

Create a SparseMatrix