defmatrix.pyi 478 B

1234567891011121314151617
  1. from collections.abc import Mapping, Sequence
  2. from typing import Any
  3. from numpy import matrix
  4. from numpy._typing import ArrayLike, DTypeLike, NDArray
  5. __all__ = ["asmatrix", "bmat", "matrix"]
  6. def bmat(
  7. obj: str | Sequence[ArrayLike] | NDArray[Any],
  8. ldict: None | Mapping[str, Any] = ...,
  9. gdict: None | Mapping[str, Any] = ...,
  10. ) -> matrix[tuple[int, int], Any]: ...
  11. def asmatrix(
  12. data: ArrayLike, dtype: DTypeLike = ...
  13. ) -> matrix[tuple[int, int], Any]: ...