pystencils.types.PsShortArrayType

Contents

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::array but device-compatible. These are also the only array types recognized by the vectorizer.

Parameters:
  • element_type (PsType) – Data type of the array entries

  • size (SupportsIndex) – Number of array entries

  • const (bool) – Constness of the array object

  • args (Any)

  • kwargs (Any)

Return type:

Any