MatrixEntry

class pyspark.mllib.linalg.distributed.MatrixEntry(i, j, value)[source]

Represents an entry of a CoordinateMatrix.

Just a wrapper over a (long, long, float) tuple.

Parameters
  • i – The row index of the matrix.

  • j – The column index of the matrix.

  • value – The (i, j)th entry of the matrix, as a float.