Last chance! 50% off unlimited learning
Sale ends in
normest(M, maxiter = 100, tol = .Machine$double.eps^(1/2))
M
, typically used for large or
sparse matrices, where the cost of calculating the norm (A)
is
prohibitive and an approximation to the 2-norm is acceptable.
Theoretically, the 2-norm of a matrix $M$ is defined as$||M||_2 = max \frac{||M*x||_2}{||x||_2}$ for all $x \neq 0$
where $||.||_2$ is the Euclidean/Frobenius norm.
cond
, svd
normest(magic(5)) == max(svd(magic(5))$d) # TRUE
normest(magic(100)) # 500050
Run the code above in your browser using DataLab