Skip to content

pycauset.IntegerMatrix

A memory-mapped dense matrix storing 32-bit integers. Inherits from MatrixBase.

Constructor

pycauset.IntegerMatrix(n: int)
pycauset.IntegerMatrix(rows: int, cols: int)
pycauset.IntegerMatrix(array: numpy.ndarray)

When constructed from a NumPy array, the array must be rank-2 with dtype int32.

Properties

shape

Returns a tuple (rows, cols) representing the dimensions of the matrix.

Methods

Indexing

Element access uses NumPy-style indexing:

x = M[i, j]
M[i, j] = value

multiply(other: IntegerMatrix) -> IntegerMatrix

Multiply this matrix by another IntegerMatrix.

__repr__() -> str

String representation of the matrix.

See also