bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / integrate / _ode / vode / _determine_mf_and_set_bands
function
scipy.integrate._ode:vode._determine_mf_and_set_bands
source: build-install/usr/lib/python3.14/site-packages/scipy/integrate/_ode.py:869
Signature
def _determine_mf_and_set_bands(self, has_jac)Summary
Determine the MF parameter (Method Flag) for the Fortran subroutine dvode.
Extended Summary
In the Fortran code, the legal values of
MFare:10, 11, 12, 13, 14, 15, 20, 21, 22, 23, 24, 25, -11, -12, -14, -15, -21, -22, -24, -25
but this Python wrapper does not use negative values. Returns
mf = 10*self.meth + miter
self.meth is the linear multistep method:
self.meth == 1: method="adams" self.meth == 2: method="bdf"
miter is the correction iteration method:
miter == 0: Functional iteration; no Jacobian involved. miter == 1: Chord iteration with user-supplied full Jacobian. miter == 2: Chord iteration with internally computed full Jacobian. miter == 3: Chord iteration with internally computed diagonal Jacobian. miter == 4: Chord iteration with user-supplied banded Jacobian. miter == 5: Chord iteration with internally computed banded Jacobian.
Side effects: If either self.mu or self.ml is not None and the other is None, then the one that is None is set to 0.
Aliases
scipy.integrate._ode.vode._determine_mf_and_set_bands