Description: % SSOR预处理的共轭梯度法求解方程Ax=b
% 输入参数说明
% A 正定矩阵[n*n]
% b 右边向量
% omega SSOR预处理参数(0--2)
% Times 迭代次数
% errtol 给定误差终止条件
%
%输出参数
% NewX 方程Ax=b的x近似解
% avgerr 求解的当前平均绝对误差- SSOR preconditioning conjugate gradient method for solving equations Ax = b the input parameter descriptions A positive definite matrix [n* n] b right side vector omega SSOR preconditioning parameters (0- 2) Times iterations errtol termination of a given error condition NewX output parameter equation Ax = b of x approximate solution to solve the current avgerr average absolute error Platform: |
Size: 1024 |
Author:zhxj |
Hits: