zmodn.Zmodn.mod_inv()

Compute the modular inverse of the Zmodn object.

Returns:

Modular inverse as a Zmodn object.

Return type:

Zmodn

Raises:

ValueError – If the Zmodn object represents a matrix (use inv() for matrices).