-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
It's a very complicated method signature, e.g.
_[()]returnsSelfif 1d+, otherwise (if 0d) returns its scalar type_[int]returnsSelf[DTypeT, ShapeT[1:]]if 1d+, otherwise (if 0d) returns its scalar type_[int, int]returnsSelf[DTypeT, ShapeT[1:]]if 1d+, otherwise (if 0d) returns its scalar type- ...
_[None]returnsarray[DTypeT, (int, *ShapeT)]_[None, None]returnsarray[DTypeT, (int, int, *ShapeT)]- ...
_[slice | array-indexer]returnsSelffor 1d+, otherwise rejects_[slice | array-indexer, slice | array-indexer]returnsSelffor 2d+, otherwise rejects- ...
_[...]returnsSelffor 0d+
almost all possible combinations are also valid 😅