Package jline.api.mc

Class Ctmc_bicgstab.BicgstabResult

java.lang.Object
jline.api.mc.Ctmc_bicgstab.BicgstabResult
Enclosing class:
Ctmc_bicgstab

public static final class Ctmc_bicgstab.BicgstabResult extends Object
Outcome of a BiCGSTAB solve. The flag follows the MATLAB bicgstab convention: 0 converged, 1 iteration limit reached, 2 preconditioner ill-conditioned, 3 stagnation, 4 a scalar quantity became too small or too large to continue. Callers must check it and fall back to another solve when it is nonzero. iter counts matrix-vector products with A: two per complete iteration, and one when the iteration converges at its half step, so an ODD count is normal. Counting products rather than iterations is what makes it comparable with the iter of Ctmc_gmres and across the four codebases.
  • Field Details

    • x

      public final Matrix x
    • flag

      public final int flag
    • relres

      public final double relres
    • iter

      public final int iter