Add the boolean flag check_linearity to the constructors of BilinearForm and LinearForm. The default value is True. If set to False, the linearity checks are turned off completely. This is different than the existing flag ignore_linearity_errors, which controls whether we get a warning or an error when the linearity check fails.
The new flag might be useful when the expression in the bilinear or linear form is complicated, because then the linearity check calls the SymPy Expr method .expand(deep=True), which is recursive and can take a very long time.
Add the boolean flag
check_linearity
to the constructors ofBilinearForm
andLinearForm
. The default value isTrue
. If set toFalse
, the linearity checks are turned off completely. This is different than the existing flagignore_linearity_errors
, which controls whether we get a warning or an error when the linearity check fails.The new flag might be useful when the expression in the bilinear or linear form is complicated, because then the linearity check calls the SymPy
Expr
method.expand(deep=True)
, which is recursive and can take a very long time.