CodeTools · MakeKernel#
2 symbols, auto-generated from package ::usage strings.
GetStandardKernelDefinitions#
GetStandardKernelDefinitions[] returns a list of standard kernel definitions used in DiFfRG.
MakeKernel#
MakeKernel[kernel_Association, parameterList_List,integrandFlow_,constantFlow_:0., integrandDefinitions_String:"", constantDefinitions_String:""]
Make a kernel from a given flow equation, parmeter list and kernel. The kernel must be a valid specification of an integration kernel. This Function creates an integrator that evaluates (constantFlow + ∫integrandFlow). One can prepend additional c++ definitions to the flow equation by using the integrandDefinitions and constantDefinitions parameters. These are prepended to the respective methods of the integration kernel, allowing one to e.g. define specific angles one needs for the flow code.
The options “KernelReturnTransform” and “ConstantReturnTransform” (default Identity) accept a Mathematica function applied to the optimized expression before code generation, which lets you wrap the return value, e.g. “KernelReturnTransform” -> Re renders the kernel return as real(…).