@@ -36,7 +36,7 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
36
36
@overload # type: ignore[override]
37
37
def __getitem__ (self , key : CanIndex | _ArrayLikeInt_co | tuple [CanIndex | _ArrayLikeInt_co , ...], / ) -> Any : ...
38
38
@overload
39
- def __getitem__ (self , key : _ToIndex1 | _ToIndex2 , / ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
39
+ def __getitem__ (self , key : _ToIndex1 | _ToIndex2 , / ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
40
40
@overload
41
41
def __getitem__ (self : _nt .Array [np .void ], key : str , / ) -> matrix [_ShapeT_co , np .dtype ]: ...
42
42
@overload
@@ -140,7 +140,7 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
140
140
@overload # type: ignore[override]
141
141
def max (self : _nt .Array [_ScalarT ], / , axis : None = None , out : None = None ) -> _ScalarT : ...
142
142
@overload
143
- def max (self , / , axis : _ToAxis , out : None = None ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
143
+ def max (self , / , axis : _ToAxis , out : None = None ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
144
144
@overload
145
145
def max (self , / , axis : _ToAxis | None , out : _ArrayT ) -> _ArrayT : ...
146
146
@overload
@@ -150,7 +150,7 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
150
150
@overload # type: ignore[override]
151
151
def min (self : _nt .Array [_ScalarT ], / , axis : None = None , out : None = None ) -> _ScalarT : ...
152
152
@overload
153
- def min (self , / , axis : _ToAxis , out : None = None ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
153
+ def min (self , / , axis : _ToAxis , out : None = None ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
154
154
@overload
155
155
def min (self , / , axis : _ToAxis | None , out : _ArrayT ) -> _ArrayT : ...
156
156
@overload
@@ -180,7 +180,7 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
180
180
@overload # type: ignore[override]
181
181
def ptp (self : _nt .Array [_ScalarT ], / , axis : None = None , out : None = None ) -> _ScalarT : ...
182
182
@overload
183
- def ptp (self , / , axis : _ToAxis , out : None = None ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
183
+ def ptp (self , / , axis : _ToAxis , out : None = None ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
184
184
@overload
185
185
def ptp (self , / , axis : _ToAxis | None , out : _ArrayT ) -> _ArrayT : ...
186
186
@overload
@@ -192,22 +192,22 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
192
192
193
193
#
194
194
@override
195
- def squeeze (self , / , axis : _ToAxis | None = None ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
195
+ def squeeze (self , / , axis : _ToAxis | None = None ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
196
196
@override
197
- def ravel (self , / , order : _OrderKACF = "C" ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
197
+ def ravel (self , / , order : _OrderKACF = "C" ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
198
198
@override
199
- def flatten (self , / , order : _OrderKACF = "C" ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
199
+ def flatten (self , / , order : _OrderKACF = "C" ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
200
200
201
201
#
202
202
@property
203
203
@override
204
- def T (self ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ... # type: ignore[override]
205
- def getT (self ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
204
+ def T (self ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ... # type: ignore[override]
205
+ def getT (self ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
206
206
207
207
#
208
208
@property
209
- def H (self ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
210
- def getH (self ) -> matrix [_nt .Shape2 , _DTypeT_co ]: ...
209
+ def H (self ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
210
+ def getH (self ) -> matrix [_nt .Rank2 , _DTypeT_co ]: ...
211
211
212
212
#
213
213
@property
@@ -221,8 +221,8 @@ class matrix(np.ndarray[_ShapeT_co, _DTypeT_co]):
221
221
222
222
#
223
223
@property
224
- def A1 (self ) -> np .ndarray [_nt .Shape1 , _DTypeT_co ]: ...
225
- def getA1 (self ) -> np .ndarray [_nt .Shape1 , _DTypeT_co ]: ...
224
+ def A1 (self ) -> np .ndarray [_nt .Rank1 , _DTypeT_co ]: ...
225
+ def getA1 (self ) -> np .ndarray [_nt .Rank1 , _DTypeT_co ]: ...
226
226
227
227
#
228
228
@overload
0 commit comments