residual.m
来自「五点差分型多重网格方法:各种插值算子的比较)」· M 代码 · 共 14 行
M
14 行
function res = residual(level, b, u_apx)
% Ryan McKenzie
% Department of Computational Sciences
% University of Kentucky
amg_globals;
% in Au=B
% the residual is B - A*u_apx
% where B is RHS
% A is system matrix
% and u_apx is the approximated solution vector
res = b - (A(level).matrix * u_apx);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?