pymor.bindings.scipy¶
Module Contents¶
- class pymor.bindings.scipy.ScipyBicgStabSolver(check_finite=None, tol=1e-15, maxiter=None)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyBicgStabSpILUSolver(check_finite=None, tol=1e-15, maxiter=None, spilu_drop_tol=0.0001, spilu_fill_factor=10, spilu_drop_rule=None, spilu_permc_spec='COLAMD')[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLGMRESSolver(check_finite=None, tol=1e-05, maxiter=1000, inner_m=39, outer_k=3)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLSMRSolver(check_finite=None, damp=0.0, atol=1e-06, btol=1e-06, conlim=100000000.0, maxiter=None, show=False)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLSQRSolver(check_finite=None, damp=0.0, atol=1e-06, btol=1e-06, conlim=100000000.0, iter_lim=None, show=False)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLSTSQSolver(check_finite=True)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLUSolveSolver(check_finite=None, check_cond=True)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLinearSolver(check_finite=True)[source]¶
Bases:
pymor.solvers.interface.SolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyLyapunovSolver[source]¶
Bases:
pymor.solvers.matrix_equations.interface.LyapunovSolverCompute the solution of a
LyapunovEquation.This function uses
scipy.linalg.solve_continuous_lyapunovorscipy.linalg.solve_discrete_lyapunov, which are dense solvers for Lyapunov equations with E=I.This solver has no tunable parameters.
Note
If E is not
None, the problem will be reduced to a standard algebraic Lyapunov equation by inverting E.
- class pymor.bindings.scipy.ScipyLyapunovSolverLRCF[source]¶
Bases:
pymor.solvers.matrix_equations.interface.LyapunovSolverLRCFCompute a low-rank Cholesky factor of the solution of a
LyapunovEquationusing SciPy.Computes the dense solution \(X\) with
ScipyLyapunovSolverand factorizes it. The factorization assumes \(X \succcurlyeq 0\), i.e. that the system is asymptotically stable.This solver has no tunable parameters.
- class pymor.bindings.scipy.ScipyPositiveRiccatiSolver[source]¶
Bases:
pymor.solvers.matrix_equations.interface.PositiveRiccatiSolverCompute the dense solution of a
PositiveRiccatiEquationusing SciPy.The positive Riccati equation differs from the
RiccatiEquationonly in the sign of the quadratic term, so it is solved byScipyRiccatiSolverwith \(R\) negated.This solver has no tunable parameters.
- class pymor.bindings.scipy.ScipyPositiveRiccatiSolverLRCF[source]¶
Bases:
pymor.solvers.matrix_equations.interface.PositiveRiccatiSolverLRCFCompute a LR Choleksy factor of the solution of a
PositiveRiccatiEquationusing SciPy.Computes the dense solution \(X\) with
ScipyPositiveRiccatiSolverand factorizes it.This solver has no tunable parameters.
- class pymor.bindings.scipy.ScipyQRLSTSQSolver(check_finite=True)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.
- class pymor.bindings.scipy.ScipyRiccatiSolver[source]¶
Bases:
pymor.solvers.matrix_equations.interface.RiccatiSolverCompute the dense solution of a
RiccatiEquationusing SciPy.Uses
scipy.linalg.solve_continuous_are, which is a dense solver.This solver has no tunable parameters.
- class pymor.bindings.scipy.ScipyRiccatiSolverLRCF[source]¶
Bases:
pymor.solvers.matrix_equations.interface.RiccatiSolverLRCFCompute a low-rank Cholesky factor of the solution of a
RiccatiEquationusing SciPy.Computes the dense solution \(X\) with
ScipyRiccatiSolverand factorizes it.This solver has no tunable parameters.
- class pymor.bindings.scipy.ScipySpSolveSolver(check_finite=None, permc_spec='COLAMD', keep_factorization=True, use_umfpack=True)[source]¶
Bases:
ScipyLinearSolverEquation solver.
Solves operator equations of the form
\[A(U; \mu) = V\]The operator \(A\) can be linear or non-linear. When \(A\) is linear, a solver can also be used to solve the adjoint equation
\[A^H(V; \mu) = U\]for \(U\).
When
least_squaresisTrue, the equations are solved in a least-squares sense:\[\operatorname{argmin}_{U} \|A(U; \mu) - V\|^2 \quad\text{or}\quad \operatorname{argmin}_{V} \|A^H(V; \mu) - U\|^2\]Solvers will typically only work for certain classes of
Operators. In most cases, solvers are invoked by theapply_inverseandapply_inverse_adjointmethods ofOperators. If anOperatorhas no associated solver,DefaultSolveris used.