warp.fem.Integrand#

class warp.fem.Integrand(func, kernel_options=None)[source]#

An integrand is a device function containing arbitrary expressions over Field and Domain variables.

It will get transformed to a proper warp.Function by resolving concrete Field types at call time.

Parameters:
func#

Original Python function wrapped by the integrand.

Type:

Callable

name#

Fully qualified name of the integrand function.

Type:

str

module#

Warp module where the integrand is registered.

Type:

Any

argspec#

Full argument specification for the integrand function.

Type:

Any

kernel_options#

Kernel options used during kernel generation.

Type:

dict[str, Any]

operators#

Resolved operators for field arguments, populated on first integrate call.

Type:

Optional[dict[str, set[“Operator”]]]

cached_kernels#

Cache of compiled kernels by specialization key.

Type:

dict[Any, Any]

cached_funcs#

Cache of specialized functions by specialization key.

Type:

dict[Any, Any]

__init__(func, kernel_options=None)[source]#
Parameters:

Methods

__init__(func[, kernel_options])