pyspark.ml.linalg.
DenseMatrix
Column-major dense matrix.
Methods
toArray()
toArray
Return a numpy.ndarray
numpy.ndarray
toSparse()
toSparse
Convert to SparseMatrix
Methods Documentation
Examples
>>> m = DenseMatrix(2, 2, range(4)) >>> m.toArray() array([[ 0., 2.], [ 1., 3.]])