IndexedRow

class pyspark.mllib.linalg.distributed.IndexedRow(index, vector)[source]

Represents a row of an IndexedRowMatrix.

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

Parameters
  • index – The index for the given row.

  • vector – The row in the matrix at the given index.