|
| 1 | +from __future__ import annotations |
| 2 | + |
| 3 | +from collections.abc import Sequence |
| 4 | +from typing import overload |
| 5 | + |
| 6 | +from flint.flint_base.flint_base import flint_mat |
| 7 | +from flint.types.fmpz import fmpz |
| 8 | +from flint.types.fmpz_mat import fmpz_mat |
| 9 | +from flint.types.fmpz_mod import fmpz_mod, fmpz_mod_ctx, ifmpz_mod |
| 10 | +from flint.types.fmpz_mod_poly import fmpz_mod_poly |
| 11 | +from flint.types.nmod_mat import nmod_mat |
| 12 | + |
| 13 | +class fmpz_mod_mat(flint_mat[fmpz_mod]): |
| 14 | + @overload |
| 15 | + def __init__(self, m: int, n: int, entries: Sequence[ifmpz_mod], ctx: fmpz_mod_ctx, /) -> None: ... |
| 16 | + @overload |
| 17 | + def __init__(self, m: int, n: int, ctx: fmpz_mod_ctx, /) -> None: ... |
| 18 | + @overload |
| 19 | + def __init__(self, val: Sequence[Sequence[ifmpz_mod]], ctx: fmpz_mod_ctx, /) -> None: ... |
| 20 | + @overload |
| 21 | + def __init__(self, val: fmpz_mod_mat | fmpz_mat | nmod_mat, ctx: fmpz_mod_ctx, /) -> None: ... |
| 22 | + @overload |
| 23 | + def __init__(self, val: fmpz_mod_mat | nmod_mat, /) -> None: ... |
| 24 | + |
| 25 | + def nrows(self) -> int: ... |
| 26 | + def ncols(self) -> int: ... |
| 27 | + def modulus(self) -> fmpz: ... |
| 28 | + def repr(self) -> str: ... |
| 29 | + def entries(self) -> list[fmpz_mod]: ... |
| 30 | + def __getitem__(self, index: tuple[int, int], /) -> fmpz_mod: ... |
| 31 | + def __setitem__(self, index: tuple[int, int], value: ifmpz_mod, /) -> None: ... |
| 32 | + |
| 33 | + def __bool__(self) -> bool: ... |
| 34 | + def __eq__(self, other: object, /) -> bool: ... |
| 35 | + def __ne__(self, other: object, /) -> bool: ... |
| 36 | + def __pos__(self) -> fmpz_mod_mat: ... |
| 37 | + def __neg__(self) -> fmpz_mod_mat: ... |
| 38 | + |
| 39 | + def __add__(self, other: fmpz_mod_mat | fmpz_mat | nmod_mat, /) -> fmpz_mod_mat: ... |
| 40 | + def __radd__(self, other: fmpz_mod_mat | fmpz_mat | nmod_mat, /) -> fmpz_mod_mat: ... |
| 41 | + def __sub__(self, other: fmpz_mod_mat | fmpz_mat | nmod_mat, /) -> fmpz_mod_mat: ... |
| 42 | + def __rsub__(self, other: fmpz_mod_mat | fmpz_mat | nmod_mat, /) -> fmpz_mod_mat: ... |
| 43 | + def __mul__(self, other: fmpz_mod_mat | fmpz_mat | nmod_mat | ifmpz_mod, /) -> fmpz_mod_mat: ... |
| 44 | + def __rmul__(self, other: fmpz_mod_mat | fmpz_mat | nmod_mat | ifmpz_mod, /) -> fmpz_mod_mat: ... |
| 45 | + def __pow__(self, other: int, /) -> fmpz_mod_mat: ... |
| 46 | + def __truediv__(self, other: ifmpz_mod, /) -> fmpz_mod_mat: ... |
| 47 | + |
| 48 | + def inv(self) -> fmpz_mod_mat: ... |
| 49 | + def det(self) -> fmpz_mod: ... |
| 50 | + def charpoly(self) -> fmpz_mod_poly: ... |
| 51 | + def minpoly(self) -> fmpz_mod_poly: ... |
| 52 | + def transpose(self) -> fmpz_mod_mat: ... |
| 53 | + def solve(self, rhs: fmpz_mod_mat | nmod_mat, /) -> fmpz_mod_mat: ... |
| 54 | + def rank(self) -> int: ... |
| 55 | + def rref(self, inplace: bool = False, /) -> tuple[fmpz_mod_mat, int]: ... |
0 commit comments