summaryrefslogtreecommitdiff
path: root/numpy/matrixlib/defmatrix.pyi
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/matrixlib/defmatrix.pyi')
-rw-r--r--numpy/matrixlib/defmatrix.pyi15
1 files changed, 15 insertions, 0 deletions
diff --git a/numpy/matrixlib/defmatrix.pyi b/numpy/matrixlib/defmatrix.pyi
new file mode 100644
index 000000000..6c86ea1ef
--- /dev/null
+++ b/numpy/matrixlib/defmatrix.pyi
@@ -0,0 +1,15 @@
+from typing import List, Any, Sequence, Mapping
+from numpy import matrix as matrix
+from numpy.typing import ArrayLike, DTypeLike, NDArray
+
+__all__: List[str]
+
+def bmat(
+ obj: str | Sequence[ArrayLike] | NDArray[Any],
+ ldict: None | Mapping[str, Any] = ...,
+ gdict: None | Mapping[str, Any] = ...,
+) -> matrix[Any, Any]: ...
+
+def asmatrix(data: ArrayLike, dtype: DTypeLike = ...) -> matrix[Any, Any]: ...
+
+mat = asmatrix