nrm = normest(A)
[nrm, count] = normest(A)
nrm = normest(A, tolerance)
[nrm, count] = normest(A, tolerance)
| Parameter | Description |
|---|---|
| A | Input matrix |
| tolerance | relative error tolerance, specified as a non-negative finite scalar. |
| Parameter | Description |
|---|---|
| nrm | Matrix norm: scalar. |
| count | Number of power iterations: scalar. |
nrm = normest(A) returns an estimate of the 2-norm of the matrixA.
Sparse double, sparse single, sparse double complex, and sparse single complex matrices are supported. Empty tolerance uses the initial column-sum estimate, and non-empty tolerance controls the power iteration stopping criterion.
M = [ 0 2.4495 0 0 0 0 0
2.4495 0 3.1623 0 0 0 0
0 3.1623 0 3.4641 0 0 0
0 0 3.4641 0 3.4641 0 0
0 0 0 3.4641 0 3.1623 0
0 0 0 0 3.1623 0 2.4495
0 0 0 0 0 2.4495 0];
[nrm, count] = normest(M)
norm(M)
| Version | Description |
|---|---|
| 1.0.0 | initial version |
| 2.0.0 | sparse single and sparse single complex inputs supported, including stored zero sparse values; tolerance validation tightened. |