matrix

A Python package for various 2D matrix operations and manipulations.

View on GitHub

Matrix views

These are views of the matrix object (i.e they don’t replicate the matrix data), kinda like how .keys() and .values() are to dict.

Note that these objects “expire” (become invalid) if the matrix is resized i.e if you create a matrix view object and then resize the matrix by any means, the previously created matrix view object becomes invalid and any operation on it raises an error.

Rows, Columns RowsSlice, ColumnsSlice instances.

These objects provide a view over multiple rows or columns of a matrix.

These objects support the following operations:

Row and Column instances

These objects provide a view over a single row or column of a matrix.

They support the following operations:

Row objects have one property:

NOTE on Row/Column arithmetic operations: