ffcx.naming

Functions

cdtype_to_numpy(cdtype)

Map a C data type string NumPy datatype string.

compute_signature(ufl_objects, tag)

Compute the signature hash.

dofmap_name(ufl_element, prefix)

expression_name(expression, prefix)

finite_element_name(ufl_element, prefix)

form_name(original_form, form_id, prefix)

integral_name(original_form, integral_type, ...)

scalar_to_value_type(scalar_type)

The C value type associated with a C scalar type.

ffcx.naming.cdtype_to_numpy(cdtype: str)[source]

Map a C data type string NumPy datatype string.

ffcx.naming.compute_signature(ufl_objects: List[Form | FiniteElementBase | Tuple[Expr, ndarray[Any, dtype[float64]]]], tag: str) str[source]

Compute the signature hash.

Based on the UFL type of the objects and an additional optional ‘tag’.

ffcx.naming.convert_element(element: FiniteElementBase) _BasixElementBase[source]

Convert and element to a FFCx element.

ffcx.naming.dofmap_name(ufl_element, prefix)[source]
ffcx.naming.expression_name(expression, prefix)[source]
ffcx.naming.finite_element_name(ufl_element, prefix)[source]
ffcx.naming.form_name(original_form, form_id, prefix)[source]
ffcx.naming.integral_name(original_form, integral_type, form_id, subdomain_id, prefix)[source]
ffcx.naming.scalar_to_value_type(scalar_type: str) str[source]

The C value type associated with a C scalar type.

Parameters:

scalar_type – A C type.

Returns:

The value type associated with scalar_type. E.g., if scalar_type is float _Complex the return value is ‘float’.