pystencils.types.PsType#

class pystencils.types.PsType(const=False)#

Base class for all pystencils types.

Parameters:
  • const (bool) – Const-qualification of this type

  • args (Any)

  • kwargs (Any)

Return type:

Any

property required_headers: set[str]#

The set of header files required when this type occurs in generated code.

property itemsize: int | None#

If this type has a valid in-memory size, return that size in bytes.

property numpy_dtype: dtype | None#

A np.dtype object representing this data type.

Available both for backward compatibility and for interaction with the numpy-based runtime system.

property c_name: str#

Returns the C name of this type without const-qualifiers.