-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a `MatrixFreeLinearOperator` class which is a subclass of the abstract class `LinearOperator`. The new class allows creating a general matrix-free linear operator. The constructor only requires the domain, codomain and a callable `dot` method. Notes: - The provided `dot` method may or may not take an `out` argument. - A `transpose_dot` method may also be provided (mandatory to instantiate the `transpose()` linear operator). - Unit tests have been added. Additional changes: - We stop passing the deprecated `tol` argument in calls to SciPy's minres and we use `rtol` instead, which requires SciPy >= 1.12. This fixes #419. - We stop supporting Python 3.8 because of SciPy 1.12. Python 3.8 is close to end-of-life anyway, see https://devguide.python.org/versions. - We also verify the initial convergence in the minres linear solver to avoid iterating when the initial solution is good enough (which may cause a division-by-zero error). - We also revert the changes to files *psydac/api/settings.py* and *pyproject.toml* which were erroneously made in PR #320 --------- Co-authored-by: e-moral-sanchez <[email protected]> Co-authored-by: Martin Campos Pinto <[email protected]>
- Loading branch information
1 parent
8340176
commit f7e4d6b
Showing
9 changed files
with
265 additions
and
26 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
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
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
Oops, something went wrong.