zmodn.Zmodn.__matmul__(other)

Perform matrix multiplication of two Zmodn objects.

Parameters:
other : Zmodn

The Zmodn object to multiply.

Returns:

The result of the matrix multiplication.

Return type:

Zmodn

Raises:
  • TypeError – If other is not a Zmodn object.

  • ValueError – If the modules are not equal or if the matrices are incompatible.