pystencils.types.PsArrayType

pystencils.types.PsArrayType#

class pystencils.types.PsArrayType(element_type, shape, const=False)#

Multidimensional array of fixed shape.

The element type of an array is never const; only the array itself can be. If element_type is const, its constness will be removed.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

property shape: tuple[int, ...]#

Shape of this array

property dim: int#

Dimensionality of this array