mpi4py.typing
Added in version 4.0.0.
This module provides type aliases used to add
type hints to the various functions and methods
within the MPI module.
Types Summary
Python buffer protocol. |
|
DLPack data interchange protocol. |
|
CUDA Array Interface (CAI) protocol. |
|
Buffer-like object. |
|
Start of the address range. |
|
In-place buffer argument. |
|
Address-sized integral type. |
|
Integral type for counts. |
|
Integral type for displacements. |
|
Integral type for offsets. |
|
Datatype specification. |
|
Buffer specification. |
|
Buffer specification (block). |
|
Buffer specification (vector). |
|
Buffer specification (generalized). |
|
Target specification. |
Types Documentation
- class mpi4py.typing.SupportsBuffer
Python buffer protocol.
See also
- class mpi4py.typing.SupportsDLPack
DLPack data interchange protocol.
See also
- __dlpack__(*, stream=None)
Export data for consumption as a DLPack capsule.
- class mpi4py.typing.SupportsCAI
CUDA Array Interface (CAI) protocol.
See also
- type mpi4py.typing.Buffer = SupportsBuffer | SupportsDLPack | SupportsCAI
Buffer-like object.
- type mpi4py.typing.Bottom = BottomType | None
Start of the address range.
- type mpi4py.typing.InPlace = InPlaceType | None
In-place buffer argument.
- type mpi4py.typing.Aint = SupportsIndex
Address-sized integral type.
- type mpi4py.typing.Count = SupportsIndex
Integral type for counts.
- type mpi4py.typing.Displ = SupportsIndex
Integral type for displacements.
- type mpi4py.typing.Offset = SupportsIndex
Integral type for offsets.
- type mpi4py.typing.BufSpec = SupportsBuffer | SupportsDLPack | SupportsCAI | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, SupportsIndex] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Datatype | str] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, SupportsIndex, Datatype | str] | tuple[BottomType | None, SupportsIndex, Datatype] | list[Any]
Buffer specification.
- type mpi4py.typing.BufSpecB = SupportsBuffer | SupportsDLPack | SupportsCAI | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, SupportsIndex] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Datatype | str] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, SupportsIndex, Datatype | str] | list[Any]
Buffer specification (block).
- type mpi4py.typing.BufSpecV = SupportsBuffer | SupportsDLPack | SupportsCAI | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Sequence[SupportsIndex]] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, tuple[Sequence[SupportsIndex], Sequence[SupportsIndex]]] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Datatype | str] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Sequence[SupportsIndex], Datatype | str] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, tuple[Sequence[SupportsIndex], Sequence[SupportsIndex]], Datatype | str] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Sequence[SupportsIndex], Sequence[SupportsIndex], Datatype | str] | tuple[BottomType | None, tuple[Sequence[SupportsIndex], Sequence[SupportsIndex]], Datatype] | tuple[BottomType | None, Sequence[SupportsIndex], Sequence[SupportsIndex], Datatype] | list[Any]
Buffer specification (vector).
- type mpi4py.typing.BufSpecW = tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Sequence[Datatype]] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, tuple[Sequence[SupportsIndex], Sequence[SupportsIndex]], Sequence[Datatype]] | tuple[SupportsBuffer | SupportsDLPack | SupportsCAI, Sequence[SupportsIndex], Sequence[SupportsIndex], Sequence[Datatype]] | tuple[BottomType | None, tuple[Sequence[SupportsIndex], Sequence[SupportsIndex]], Sequence[Datatype]] | tuple[BottomType | None, Sequence[SupportsIndex], Sequence[SupportsIndex], Sequence[Datatype]] | list[Any]
Buffer specification (generalized).
- type mpi4py.typing.TargetSpec = SupportsIndex | tuple[()] | tuple[SupportsIndex] | tuple[SupportsIndex, SupportsIndex] | tuple[SupportsIndex, SupportsIndex, Datatype | str] | list[Any]
Target specification.
- mpi4py.typing.S = ~S
Type variable.
- mpi4py.typing.T = ~T
Type variable.
- mpi4py.typing.U = ~U
Type variable.
- mpi4py.typing.V = ~V
Type variable.