warp.optim.linear.CR#
- class warp.optim.linear.CR(
- A,
- b,
- x,
- tol=None,
- atol=None,
- maxiter=0,
- M=None,
- callback=None,
- check_every=10,
- use_cuda_graph=True,
Pre-allocated state for the Conjugate Residual solver.
See
LinearSolverStatefor the constructor parameters. The preconditionerMmay be freely changed (or toggled betweenNoneand a valid operator) between calls as long as the matrix shape, batch count, dtype, and device remain the same.- Parameters:
- __init__(
- A,
- b,
- x,
- tol=None,
- atol=None,
- maxiter=0,
- M=None,
- callback=None,
- check_every=10,
- use_cuda_graph=True,
Methods
__init__(A, b, x[, tol, atol, maxiter, M, ...])