pystencils.types.PsNamedArrayType#
- class pystencils.types.PsNamedArrayType(name, element_type, shape, const=False)#
Named multidimensional fixed-size array type.
Extends
PsArrayTypewith a custom name to model C++ containers with an nd-array interface. Only through named array-types can arrays be treated fully as first-class objects with the same value semantics as scalars and structs.- Parameters:
name (
str) – Full name of the array typeelement_type (
PsType) – Data type of array entriesshape (
Union[SupportsIndex,Sequence[SupportsIndex]]) – Array shapeconst (
bool) – Constness of the array objectargs (Any)
kwargs (Any)
- Return type:
Any