|
| 1 | +from __future__ import annotations |
| 2 | + |
| 3 | +from collections.abc import Iterable, Iterator, Sequence |
| 4 | +from typing import Literal, overload |
| 5 | + |
| 6 | +from flint.flint_base.flint_base import flint_mat |
| 7 | +from flint.types.fmpq import fmpq, ifmpq |
| 8 | +from flint.types.fmpq_poly import fmpq_poly |
| 9 | +from flint.types.fmpz import fmpz |
| 10 | +from flint.types.fmpz_mat import fmpz_mat |
| 11 | + |
| 12 | +_str = str |
| 13 | + |
| 14 | +ifmpq_mat = fmpq_mat | fmpz_mat | Sequence[Sequence[ifmpq]] |
| 15 | + |
| 16 | + |
| 17 | +class fmpq_mat(flint_mat[fmpq]): |
| 18 | + @overload |
| 19 | + def __init__(self, val: ifmpq_mat, /) -> None: ... |
| 20 | + @overload |
| 21 | + def __init__(self, m: int, n: int, /) -> None: ... |
| 22 | + @overload |
| 23 | + def __init__(self, m: int, n: int, entries: Iterable[ifmpq], /) -> None: ... |
| 24 | + |
| 25 | + def __bool__(self) -> bool: ... |
| 26 | + def __eq__(self, other: object, /) -> bool: ... |
| 27 | + def __ne__(self, other: object, /) -> bool: ... |
| 28 | + |
| 29 | + def __getitem__(self, index: tuple[int, int], /) -> fmpq: ... |
| 30 | + def __setitem__(self, index: tuple[int, int], value: ifmpq, /) -> None: ... |
| 31 | + def __iter__(self) -> Iterator[fmpq]: ... |
| 32 | + def entries(self) -> list[fmpq]: ... |
| 33 | + def table(self) -> list[list[fmpq]]: ... |
| 34 | + def tolist(self) -> list[list[fmpq]]: ... |
| 35 | + |
| 36 | + def det(self) -> fmpq: ... |
| 37 | + def __pos__(self) -> fmpq_mat: ... |
| 38 | + def __neg__(self) -> fmpq_mat: ... |
| 39 | + def __add__(self, other: fmpq_mat | fmpz_mat, /) -> fmpq_mat: ... |
| 40 | + def __sub__(self, other: fmpq_mat | fmpz_mat, /) -> fmpq_mat: ... |
| 41 | + def __mul__(self, other: fmpq_mat | fmpz_mat | ifmpq, /) -> fmpq_mat: ... |
| 42 | + def __rmul__(self, other: fmpz_mat | ifmpq, /) -> fmpq_mat: ... |
| 43 | + def __truediv__(self, other: ifmpq, /) -> fmpq_mat: ... |
| 44 | + |
| 45 | + def inv(self) -> fmpq_mat: ... |
| 46 | + def transpose(self) -> fmpq_mat: ... |
| 47 | + def solve( |
| 48 | + self, |
| 49 | + other: fmpq_mat | fmpz_mat, |
| 50 | + algorithm: Literal["fflu", "dixon"] | None = None, |
| 51 | + /, |
| 52 | + ) -> fmpq_mat: ... |
| 53 | + def rref(self, inplace: bool = False, /) -> tuple[fmpq_mat, int]: ... |
| 54 | + def rank(self) -> int: ... |
| 55 | + @classmethod |
| 56 | + def hilbert(cls, n: int, m: int, /) -> fmpq_mat: ... |
| 57 | + def numer_denom(self) -> tuple[fmpz_mat, fmpz]: ... |
| 58 | + def charpoly(self) -> fmpq_poly: ... |
| 59 | + def minpoly(self) -> fmpq_poly: ... |
| 60 | + def __pow__(self, exponent: int, modulo: None = None, /) -> fmpq_mat: ... |
| 61 | + |
| 62 | + def str(self, *args: object, **kwargs: object) -> _str: ... |
| 63 | + def repr(self) -> _str: ... |
| 64 | + def __str__(self) -> _str: ... |
| 65 | + def __repr__(self) -> _str: ... |
0 commit comments