IndexedRow#
- class pyspark.mllib.linalg.distributed.IndexedRow(index, vector)[source]#
Represents a row of an IndexedRowMatrix.
Just a wrapper over a (int, vector) tuple.
- Parameters
- indexint
The index for the given row.
- vector
pyspark.mllib.linalg.Vector
or convertible The row in the matrix at the given index.