Matrix

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

Methods

toArray()

Returns its elements in a numpy.ndarray.

Methods Documentation

toArray() → numpy.ndarray

Returns its elements in a numpy.ndarray.