warp.optim.linear#

Iterative linear solvers for sparse linear systems.

This module provides GPU-accelerated iterative methods for solving linear systems, including conjugate gradient (CG), biconjugate gradient stabilized (BiCGSTAB), conjugate residual (CR), and generalized minimal residual (GMRES) methods.

API#

LinearOperator

Linear operator to be used as left-hand-side of linear iterative solvers.

aslinearoperator

Casts the dense or sparse matrix A as a LinearOperator

bicgstab

Computes an approximate solution to a linear system using the Biconjugate Gradient Stabilized method (BiCGSTAB).

cg

Computes an approximate solution to a symmetric, positive-definite linear system using the Conjugate Gradient algorithm.

cr

Computes an approximate solution to a symmetric, positive-definite linear system using the Conjugate Residual algorithm.

gmres

Computes an approximate solution to a linear system using the restarted Generalized Minimum Residual method (GMRES[k]).

preconditioner

Constructs and returns a preconditioner for an input matrix.