warp.optim.linear.preconditioner#
- warp.optim.linear.preconditioner(A, ptype='diag')[source]#
Constructs and returns a preconditioner for an input matrix.
- Parameters:
A (array | BsrMatrix | LinearOperator) – The matrix for which to build the preconditioner
ptype (str) –
The type of preconditioner. Currently the following values are supported:
"diag": Diagonal (a.k.a. Jacobi) preconditioner"diag_abs": Similar to Jacobi, but using the absolute value of diagonal coefficients"id": Identity (null) preconditioner
- Return type: