Returns a column sum vector as a materialized Scala Seq collected to the driver.
Returns a column sum vector as a materialized Scala Seq collected to the driver. By default,
the implementation calls reduceColElements
.
Reduce each column using an associative f
.
Reduce each column using an associative f
. The result matrix has the same number of columns, and 1 row.
Example usage includes getting a column sum vector.
Reduce each row using an associative f
.
Reduce each row using an associative f
. The result matrix has the same number of rows, and 1 column.
Example usage includes getting a row sum vector.
Returns a row sum vector as a materialized Scala Seq collected to the driver.
Returns a row sum vector as a materialized Scala Seq collected to the driver. By default,
the implementation calls reduceRowElements
.
Class representing a DistributedMatrix.