📄 residual.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -