ArrayProps#
- class snake.core.parallel.ArrayProps(name, shape, dtype)[source]#
Bases:
NamedTuple
Properties of an array stored in shared memory.
Methods
__init__
count
Return number of occurrences of value.
index
Return first index of value.
Attributes
- Parameters:
- dtype: dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any]#
Alias for field number 2
- _asdict()#
Return a new dict which maps field names to their values.
- classmethod _make(iterable)#
Make a new ArrayProps object from a sequence or iterable
- _replace(**kwds)#
Return a new ArrayProps object replacing specified fields with new values