matrix

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

View on GitHub

Matrix Operations

The Matrix class implements the following matrix operations. The same rules as in mathematics apply.

All these operations return a new Matrix instance except stated otherwise.

Via unary operators

Via binary operators

where m is a matrix and c is a real number.

The augmented assignment counterparts of these binary operators are also supported and perform the operations in-place i.e the matrix object remains unchanged.

Via explicit methods