Class CGS

All Implemented Interfaces:
IterativeSolver

public class CGS extends AbstractIterativeSolver
Conjugate Gradients squared solver. CGS solves the unsymmetric linear system Ax = b using the Conjugate Gradient Squared method
  • Constructor Details

    • CGS

      public CGS(Vector template)
      Constructor for CGS. Uses the given vector as template for creating scratch vectors. Typically, the solution or the right hand side vector can be passed, and the template is not modified
      Parameters:
      template - Vector to use as template for the work vectors needed in the solution process
  • Method Details