SSOR Preconditioned Conjugate Gradient Method for Solving Linear Equations
% Implementation of SSOR preconditioned conjugate gradient method for solving Ax=b % Input parameters: % A - positive definite matrix [n*n] % b - right-hand side vector % omega - SSOR preconditioning parameter (range: 0--2) % Times - maximum iteration count % errtol - error tolerance for termination condition % % Output parameters: % NewX - approximate solution x for equation Ax=b % avgerr - current average absolute error during computation % % This implementation efficiently handles large sparse matrices using symmetric successive over-relaxation preconditioning to accelerate convergence.