pymor.bindings.scipy

Classes

ScipyBicgStabSolver

ScipyBicgStabSpILUSolver

ScipyLGMRESSolver

ScipyLSMRSolver

ScipyLSQRSolver

ScipyLSTSQSolver

ScipyLUSolveSolver

ScipyLinearSolver

ScipyLyapunovSolver

Compute the solution of a LyapunovEquation.

ScipyLyapunovSolverLR

Compute a low-rank factor of the solution of a LyapunovEquation using SciPy.

ScipyPositiveRiccatiSolver

Compute the dense solution of a PositiveRiccatiEquation using SciPy.

ScipyPositiveRiccatiSolverLR

Compute a low-rank factor of the solution of a PositiveRiccatiEquation using SciPy.

ScipyQRLSTSQSolver

ScipyRiccatiSolver

Compute the dense solution of a RiccatiEquation using SciPy.

ScipyRiccatiSolverLR

Compute a low-rank factor of the solution of a RiccatiEquation using SciPy.

ScipySpSolveSolver

Functions

matrix_astype_nocopy

svd_lapack_driver

class pymor.bindings.scipy.ScipyBicgStabSolver(check_finite=None, tol=1e-15, maxiter=None)[source]

Bases: ScipyLinearSolver

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: ScipyLinearSolver

class pymor.bindings.scipy.ScipyLGMRESSolver(check_finite=None, tol=1e-05, maxiter=1000, inner_m=39, outer_k=3)[source]

Bases: ScipyLinearSolver

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: ScipyLinearSolver

least_squares = True[source]

If True, the solver solves least-squares problems as defined above.

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: ScipyLinearSolver

least_squares = True[source]

If True, the solver solves least-squares problems as defined above.

class pymor.bindings.scipy.ScipyLSTSQSolver(check_finite=True)[source]

Bases: ScipyLinearSolver

least_squares = True[source]

If True, the solver solves least-squares problems as defined above.

class pymor.bindings.scipy.ScipyLUSolveSolver(check_finite=None, check_cond=True)[source]

Bases: ScipyLinearSolver

class pymor.bindings.scipy.ScipyLinearSolver(check_finite=True)[source]

Bases: Solver

class pymor.bindings.scipy.ScipyLyapunovSolver[source]

Bases: LyapunovSolver

Compute the solution of a LyapunovEquation.

This function uses scipy.linalg.solve_continuous_lyapunov or scipy.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.ScipyLyapunovSolverLR[source]

Bases: LyapunovSolverLR

Compute a low-rank factor of the solution of a LyapunovEquation using SciPy.

Computes the dense solution \(X\) with ScipyLyapunovSolver and 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: PositiveRiccatiSolver

Compute the dense solution of a PositiveRiccatiEquation using SciPy.

The positive Riccati equation differs from the RiccatiEquation only in the sign of the quadratic term, so it is solved by ScipyRiccatiSolver with \(R\) negated.

This solver has no tunable parameters.

class pymor.bindings.scipy.ScipyPositiveRiccatiSolverLR[source]

Bases: PositiveRiccatiSolverLR

Compute a low-rank factor of the solution of a PositiveRiccatiEquation using SciPy.

Computes the dense solution \(X\) with ScipyPositiveRiccatiSolver and factorizes it.

This solver has no tunable parameters.

class pymor.bindings.scipy.ScipyQRLSTSQSolver(pivoting=True, check_finite=None)[source]

Bases: ScipyLinearSolver

least_squares = True[source]

If True, the solver solves least-squares problems as defined above.

class pymor.bindings.scipy.ScipyRiccatiSolver[source]

Bases: RiccatiSolver

Compute the dense solution of a RiccatiEquation using SciPy.

Uses scipy.linalg.solve_continuous_are, which is a dense solver.

This solver has no tunable parameters.

class pymor.bindings.scipy.ScipyRiccatiSolverLR[source]

Bases: RiccatiSolverLR

Compute a low-rank factor of the solution of a RiccatiEquation using SciPy.

Computes the dense solution \(X\) with ScipyRiccatiSolver and 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: ScipyLinearSolver

pymor.bindings.scipy.matrix_astype_nocopy(matrix, dtype)[source]
pymor.bindings.scipy.svd_lapack_driver(driver='gesvd_unless_win_mkl')[source]