Module mat

Source
Expand description

A simple column-major Matrix implementation with element-wise operations.

Structs§

Matrix
A column‑major 2D matrix of T. Index as Array(row, column).
MatrixRow
Represents an immutable view of a single row in the matrix.

Enums§

Axis
Specifies the axis along which to perform a reduction operation.

Traits§

Broadcastable
A trait to turn either a Matrix<T> or a scalar T into a Vec<T> of length rows*cols (broadcasting the scalar). Used for comparisons.

Type Aliases§

BoolMatrix
FloatMatrix
IntMatrix
StringMatrix