pub fn amg_vcycle<R, C>(
client: &C,
hierarchy: &AmgHierarchy<R>,
rhs: &Tensor<R>,
level: usize,
) -> Result<Tensor<R>>Expand description
Apply one AMG V-cycle: smooth → restrict → coarse-solve → prolongate → smooth
This is the preconditioner application: given residual r, compute z ≈ A^{-1} r