Buckets:
ktongue/docker_container / simsite /venv /lib /python3.14 /site-packages /numpy /matrixlib /defmatrix.pyi
| from _typeshed import Incomplete | |
| from collections.abc import Mapping, Sequence | |
| from types import EllipsisType | |
| from typing import Any, ClassVar, Literal as L, Self, SupportsIndex, TypeAlias, overload | |
| from typing_extensions import TypeVar | |
| import numpy as np | |
| from numpy._typing import ( | |
| ArrayLike, | |
| DTypeLike, | |
| NDArray, | |
| _AnyShape, | |
| _ArrayLikeInt_co, | |
| _NestedSequence, | |
| _ShapeLike, | |
| ) | |
| __all__ = ["asmatrix", "bmat", "matrix"] | |
| _T = TypeVar("_T") | |
| _ArrayT = TypeVar("_ArrayT", bound=np.ndarray) | |
| _BoolOrIntArrayT = TypeVar("_BoolOrIntArrayT", bound=NDArray[np.integer | np.bool]) | |
| _ScalarT = TypeVar("_ScalarT", bound=np.generic) | |
| _ShapeT_co = TypeVar("_ShapeT_co", bound=_2D, default=_2D, covariant=True) | |
| _DTypeT_co = TypeVar("_DTypeT_co", bound=np.dtype, default=np.dtype, covariant=True) | |
| _2D: TypeAlias = tuple[int, int] | |
| _Matrix: TypeAlias = matrix[_2D, np.dtype[_ScalarT]] | |
| _ToIndex1: TypeAlias = slice | EllipsisType | NDArray[np.integer | np.bool] | _NestedSequence[int] | None | |
| _ToIndex2: TypeAlias = tuple[_ToIndex1, _ToIndex1 | SupportsIndex] | tuple[_ToIndex1 | SupportsIndex, _ToIndex1] | |
| class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]): | |
| __array_priority__: ClassVar[float] = 10.0 # pyright: ignore[reportIncompatibleMethodOverride] | |
| def __new__( | |
| subtype, # pyright: ignore[reportSelfClsParameterName] | |
| data: ArrayLike, | |
| dtype: DTypeLike | None = None, | |
| copy: bool = True, | |
| ) -> _Matrix[Incomplete]: ... | |
| # | |
| # type: ignore[override] | |
| def __getitem__( | |
| self, key: SupportsIndex | _ArrayLikeInt_co | tuple[SupportsIndex | _ArrayLikeInt_co, ...], / | |
| ) -> Incomplete: ... | |
| def __getitem__(self, key: _ToIndex1 | _ToIndex2, /) -> matrix[_2D, _DTypeT_co]: ... | |
| def __getitem__(self: _Matrix[np.void], key: str, /) -> _Matrix[Incomplete]: ... | |
| def __getitem__(self: _Matrix[np.void], key: list[str], /) -> matrix[_2D, _DTypeT_co]: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # | |
| def __mul__(self, other: ArrayLike, /) -> _Matrix[Incomplete]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | |
| def __rmul__(self, other: ArrayLike, /) -> _Matrix[Incomplete]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | |
| # | |
| def __pow__(self, other: ArrayLike, /) -> _Matrix[Incomplete]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | |
| def __rpow__(self, other: ArrayLike, /) -> _Matrix[Incomplete]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `prod` and `mean` | |
| # type: ignore[override] | |
| def sum(self, axis: None = None, dtype: DTypeLike | None = None, out: None = None) -> Incomplete: ... | |
| def sum(self, axis: _ShapeLike, dtype: DTypeLike | None = None, out: None = None) -> _Matrix[Incomplete]: ... | |
| def sum(self, axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def sum(self, axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `sum` and `mean` | |
| # type: ignore[override] | |
| def prod(self, axis: None = None, dtype: DTypeLike | None = None, out: None = None) -> Incomplete: ... | |
| def prod(self, axis: _ShapeLike, dtype: DTypeLike | None = None, out: None = None) -> _Matrix[Incomplete]: ... | |
| def prod(self, axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def prod(self, axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `sum` and `prod` | |
| # type: ignore[override] | |
| def mean(self, axis: None = None, dtype: DTypeLike | None = None, out: None = None) -> Incomplete: ... | |
| def mean(self, axis: _ShapeLike, dtype: DTypeLike | None = None, out: None = None) -> _Matrix[Incomplete]: ... | |
| def mean(self, axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def mean(self, axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `var` | |
| # type: ignore[override] | |
| def std(self, axis: None = None, dtype: DTypeLike | None = None, out: None = None, ddof: float = 0) -> Incomplete: ... | |
| def std(self, axis: _ShapeLike, dtype: DTypeLike | None = None, out: None = None, ddof: float = 0) -> _Matrix[Incomplete]: ... | |
| def std(self, axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT, ddof: float = 0) -> _ArrayT: ... | |
| def std( # pyright: ignore[reportIncompatibleMethodOverride] | |
| self, axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, *, out: _ArrayT, ddof: float = 0 | |
| ) -> _ArrayT: ... | |
| # keep in sync with `std` | |
| # type: ignore[override] | |
| def var(self, axis: None = None, dtype: DTypeLike | None = None, out: None = None, ddof: float = 0) -> Incomplete: ... | |
| def var(self, axis: _ShapeLike, dtype: DTypeLike | None = None, out: None = None, ddof: float = 0) -> _Matrix[Incomplete]: ... | |
| def var(self, axis: _ShapeLike | None, dtype: DTypeLike | None, out: _ArrayT, ddof: float = 0) -> _ArrayT: ... | |
| def var( # pyright: ignore[reportIncompatibleMethodOverride] | |
| self, axis: _ShapeLike | None = None, dtype: DTypeLike | None = None, *, out: _ArrayT, ddof: float = 0 | |
| ) -> _ArrayT: ... | |
| # keep in sync with `all` | |
| # type: ignore[override] | |
| def any(self, axis: None = None, out: None = None) -> np.bool: ... | |
| def any(self, axis: _ShapeLike, out: None = None) -> _Matrix[np.bool]: ... | |
| def any(self, axis: _ShapeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def any(self, axis: _ShapeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `any` | |
| # type: ignore[override] | |
| def all(self, axis: None = None, out: None = None) -> np.bool: ... | |
| def all(self, axis: _ShapeLike, out: None = None) -> _Matrix[np.bool]: ... | |
| def all(self, axis: _ShapeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def all(self, axis: _ShapeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `min` and `ptp` | |
| # type: ignore[override] | |
| def max(self: NDArray[_ScalarT], axis: None = None, out: None = None) -> _ScalarT: ... | |
| def max(self, axis: _ShapeLike, out: None = None) -> matrix[_2D, _DTypeT_co]: ... | |
| def max(self, axis: _ShapeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def max(self, axis: _ShapeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `max` and `ptp` | |
| # type: ignore[override] | |
| def min(self: NDArray[_ScalarT], axis: None = None, out: None = None) -> _ScalarT: ... | |
| def min(self, axis: _ShapeLike, out: None = None) -> matrix[_2D, _DTypeT_co]: ... | |
| def min(self, axis: _ShapeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def min(self, axis: _ShapeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `max` and `min` | |
| def ptp(self: NDArray[_ScalarT], axis: None = None, out: None = None) -> _ScalarT: ... | |
| def ptp(self, axis: _ShapeLike, out: None = None) -> matrix[_2D, _DTypeT_co]: ... | |
| def ptp(self, axis: _ShapeLike | None, out: _ArrayT) -> _ArrayT: ... | |
| def ptp(self, axis: _ShapeLike | None = None, *, out: _ArrayT) -> _ArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `argmin` | |
| # type: ignore[override] | |
| def argmax(self: NDArray[_ScalarT], axis: None = None, out: None = None) -> np.intp: ... | |
| def argmax(self, axis: _ShapeLike, out: None = None) -> _Matrix[np.intp]: ... | |
| def argmax(self, axis: _ShapeLike | None, out: _BoolOrIntArrayT) -> _BoolOrIntArrayT: ... | |
| def argmax(self, axis: _ShapeLike | None = None, *, out: _BoolOrIntArrayT) -> _BoolOrIntArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # keep in sync with `argmax` | |
| # type: ignore[override] | |
| def argmin(self: NDArray[_ScalarT], axis: None = None, out: None = None) -> np.intp: ... | |
| def argmin(self, axis: _ShapeLike, out: None = None) -> _Matrix[np.intp]: ... | |
| def argmin(self, axis: _ShapeLike | None, out: _BoolOrIntArrayT) -> _BoolOrIntArrayT: ... | |
| def argmin(self, axis: _ShapeLike | None = None, *, out: _BoolOrIntArrayT) -> _BoolOrIntArrayT: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # the second overload handles the (rare) case that the matrix is not 2-d | |
| def tolist(self: _Matrix[np.generic[_T]]) -> list[list[_T]]: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| def tolist(self) -> Incomplete: ... # pyright: ignore[reportIncompatibleMethodOverride] | |
| # these three methods will at least return a `2-d` array of shape (1, n) | |
| def squeeze(self, /, axis: _ShapeLike | None = None) -> matrix[_2D, _DTypeT_co]: ... | |
| def ravel(self, /, order: L["K", "A", "C", "F"] | None = "C") -> matrix[_2D, _DTypeT_co]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | |
| def flatten(self, /, order: L["K", "A", "C", "F"] | None = "C") -> matrix[_2D, _DTypeT_co]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride] | |
| # matrix.T is inherited from _ScalarOrArrayCommon | |
| def getT(self) -> Self: ... | |
| def I(self) -> _Matrix[Incomplete]: ... # noqa: E743 | |
| def getI(self) -> _Matrix[Incomplete]: ... | |
| def A(self) -> np.ndarray[_2D, _DTypeT_co]: ... | |
| def getA(self) -> np.ndarray[_2D, _DTypeT_co]: ... | |
| def A1(self) -> np.ndarray[_AnyShape, _DTypeT_co]: ... | |
| def getA1(self) -> np.ndarray[_AnyShape, _DTypeT_co]: ... | |
| def H(self) -> matrix[_2D, _DTypeT_co]: ... | |
| def getH(self) -> matrix[_2D, _DTypeT_co]: ... | |
| def bmat( | |
| obj: str | Sequence[ArrayLike] | NDArray[Any], | |
| ldict: Mapping[str, Any] | None = None, | |
| gdict: Mapping[str, Any] | None = None, | |
| ) -> _Matrix[Incomplete]: ... | |
| def asmatrix(data: ArrayLike, dtype: DTypeLike | None = None) -> _Matrix[Incomplete]: ... | |
Xet Storage Details
- Size:
- 11.1 kB
- Xet hash:
- f916ce6dbb38e79f7e74b30509ded4ed6b79cfb0bf400ca1236ed3e6d5510a16
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.