pub fn conjugate_gradient<T: ComplexField>(
out: MatMut<'_, T>,
precond: impl Precond<T>,
mat: impl LinOp<T>,
rhs: MatRef<'_, T>,
params: CgParams<T::Real>,
callback: impl FnMut(MatRef<'_, T>),
par: Par,
stack: &mut MemStack,
) -> Result<CgInfo<T::Real>, CgError<T::Real>>Expand description
executes the conjugate gradient using the provided preconditioner
ยงnote
this function is also optimized for a rhs with multiple columns