Matrix

class pyspark.mllib.linalg.Matrix(numRows, numCols, isTransposed=False)[source]

Methods

asML()

Convert this matrix to the new mllib-local representation.

toArray()

Returns its elements in a NumPy ndarray.

Methods Documentation

asML()[source]

Convert this matrix to the new mllib-local representation. This does NOT copy the data; it copies references.

toArray()[source]

Returns its elements in a NumPy ndarray.