mccube._term
Defines custom terms for performing MCC in diffrax.
See diffrax.AbstractTerm for further information on the terms API.
MCCTerm
¤
MCCTerm(ode: ODETerm, cde: WeaklyDiagonalControlTerm)
Bases: AbstractTerm
Provides a convenience interface for CDEs whose control is a Cubature Path.
Performs shape coercion to ensure the ode and cde terms can be broadcast
together. One can achive the same result with a diffrax.MultiTerm providing
suitable modifcations are made to the input and vector field shapes.
Example
Parameters:
-
ode(ODETerm) –is a
diffrax.ODETerm. -
cde(WeaklyDiagonalControlTerm) –is a
diffrax.WeaklyDiagonalControlTerm, driven by amccube.AbstractCubaturePath.