pystencils.types.PsScalarType

pystencils.types.PsScalarType#

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

Scalar numeric type.

Parameters:
  • args (Any)

  • kwargs (Any)

Return type:

Any

abstract create_literal(value)#

Create a C numerical literal for a constant of this type.

Raises:

PsTypeError – If the given value’s type is not the numeric type’s compiler-internal representation.

Return type:

str

Parameters:

value (Any)

abstract property width: int#

Return this type’s width in bits.