pystencils.types.PsShortArrayType#
- class pystencils.types.PsShortArrayType(element_type, size, const=False)#
Short-array types of the pystencils runtime.
These are first-class 1D arrays with value semantics provided by the pystencils runtime, similar to C++
std::arraybut device-compatible. These are also the only array types recognized by the vectorizer.- Parameters:
element_type (
PsType) – Data type of the array entriessize (
SupportsIndex) – Number of array entriesconst (
bool) – Constness of the array objectargs (Any)
kwargs (Any)
- Return type:
Any