pystencils.codegen.Parameter

pystencils.codegen.Parameter#

class pystencils.codegen.Parameter(name, dtype, properties=())#

Parameter to an output object of the code generator.

Parameters:
property fields: Sequence[Field]#

Set of fields associated with this parameter.

get_properties(prop_type)#

Retrieve all properties of the given type(s) attached to this parameter

Return type:

set[PsSymbolProperty]

Parameters:

prop_type (type[PsSymbolProperty] | tuple[type[PsSymbolProperty], ...])