pystencils.codegen.create_kernel#
- pystencils.codegen.create_kernel(assignments, config=None, **kwargs)#
Create a kernel function from a set of assignments.
- Parameters:
assignments (
Union
[AssignmentCollection
,Sequence
[AssignmentBase
],AssignmentBase
]) – The kernel’s sequence of assignments, expressed using SymPyconfig (
Optional
[CreateKernelConfig
]) – The configuration for the kernel translatorkwargs – If
config
is not set, it is created from the keyword arguments; if it is set, its option will be overridden by any keyword arguments.
- Return type:
- Returns:
The numerical kernel in pystencil’s internal representation, ready to be exported or compiled