gee_its_simple_resid.m

来自「The "GEE! It s Simple" package illustrat」· M 代码 · 共 17 行

M
17
字号
function r = gee_its_simple_resid (A, x, b)%GEE_ITS_SIMPLE_RESID compute the relative residual for x=A\b% For non-singular matrices with reasonable condition number, the relative% residual is typically O(eps).%% Example:%%   r = gee_its_simple_resid (A, x, b) ;%% See also: norm, gee_its_simple% Copyright 2007, Timothy A. Davis.% http://www.cise.ufl.edu/research/sparser = norm (A*x-b,inf) / (norm (A,inf) * norm (x, inf) + norm (b, inf)) ;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?