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:
- Parameters:
value (Any)