-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow turning off linearity checks in bilinear and linear forms (#153)
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. --------- Co-authored-by: Yaman Güçlü <yaman.guclu@gmail.com>
- Loading branch information
1 parent
75df221
commit 809b2e0
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters