Matrix

class pyspark.ml.linalg.Matrix(numRows: int, numCols: int, isTransposed: bool = False)[source]

Methods

toArray()

Returns its elements in a numpy.ndarray.

Methods Documentation

toArray() → numpy.ndarray[source]

Returns its elements in a numpy.ndarray.