Typing
- xtensors.DimLike
alias of
Union[str,int,Tuple[str,int],HasDimName]
- xtensors.Dims
alias of
List[Optional[str]]
- xtensors.DimsLike
alias of
List[Union[str,int,Tuple[str,int],HasDimName]]
- xtensors.Coords
alias of
List[Optional[ndarray]]
- xtensors.AxesPermutation
alias of
List[Optional[int]]
- class xtensors.Array(*args, **kwargs)
Bases:
ProtocolAnything that implements the
__array__protocol- __array__() ndarray
- class xtensors.HasDimName(*args, **kwargs)
Bases:
ProtocolAnything that implements the
__get_dimname__protocol- __get_dimname__() str
- class xtensors.Dimcaster(*args, **kwargs)
Bases:
ProtocolThe dimension caster protocol.
- __call__(X: XTensor, Y: XTensor) Tuple[AxesPermutation, AxesPermutation]
- Parameters:
x,y – A pair of
xtensors.XTensorobjects- Returns:
A pair of
xtensors.AxesPermutation(i.e. lists of ints) specifying how the axes ofXandYshould be permuted.
- class xtensors.DimMerger(*args, **kwargs)
Bases:
ProtocolDimension-name-merging protocol
- class xtensors.CoordMerger(*args, **kwargs)
Bases:
ProtocolCoordinates-mergin protocol
- class xtensors.Broadcaster(*args, **kwargs)
Bases:
ProtocolBroadcaster protocol