norm returns the approximate norm of a matrix
Publié : jeu. août 23, 2018 2:01 am
The norm command gives the exact value for vectors
Input: norm([1,2,3,-4])
Output: sqrt(30)
For a matrix, though, it returns an approximation.
Input: norm([[1,2],[3,-4]])
Output: 5.11667273602
I get the same result for l2norm in both cases.
The manual (section l2 matrix norm) indicates that it should be exact.
Input: norm([1,2,3,-4])
Output: sqrt(30)
For a matrix, though, it returns an approximation.
Input: norm([[1,2],[3,-4]])
Output: 5.11667273602
I get the same result for l2norm in both cases.
The manual (section l2 matrix norm) indicates that it should be exact.