Matrix# class pyspark.ml.linalg.Matrix(numRows, numCols, isTransposed=False)[source]# Methods toArray() Returns its elements in a numpy.ndarray. Methods Documentation toArray()[source]# Returns its elements in a numpy.ndarray.