行列のノルム
y = norm(x) y = norm(x, normType)
実数または複素数のベクトルまたは(通常または疎の)行列
x: a number among
1, 2, %inf, -%inf, or a word among
"inf" (or "i") or
"fro" (or "f").x: any number or %inf,
-%inf; or a word "inf"
("i"), "fro" ("f").ノルム
行列の場合
またはnorm(x,2) は
xの最大特異値 (max(svd(x)))
となります.
xのl_1 ノルム (列の和の最大値:
max(sum(abs(x),'r')) ).
xの無限大ノルム (列の和の最大値
: max(sum(abs(x),'c')) ).
フロベニウスノルム,すなわち,
sqrt(sum(diag(x'*x))).
ベクトルの場合
l_p ノルム sum(abs(v(i))^p)^(1/p) .
l_2 ノルム
max(abs(v(i))).
norm([])とnorm([],p)は0を返します。
norm(x)とnorm(x,p)は、xにNaNが含まれる場合、NaNを返します。