Different norms for different functions
9 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am wondering why functions such as 'rcond' rely on a different norm of computation than the default value of the function 'norm'. Moreover, I am also wondering why the default output of 'norm' is the spectral norm. What is the intuition/practicality behind this?
0 Commenti
Risposte (1)
Ameer Hamza
il 21 Mag 2018
MATLAB provides the option to use cond to calculate a different-norm condition number. According to the documentation difference between rcond() and cond() lies in their implementation. rcond() is more efficient of the two, but less reliable.
As for the choice of L2-norm as default output for norm() function, I think it has to do with the widespread use of L2 norm. For example, the Euclidean distance between two vectors, similarly the least square error problems also use L2-norm between predicted and actual dataset. Other types of norms are not as common and intuitive as L2 norm. Therefore it make sense to set it as the default value for MATLAB's norm() function.
0 Commenti
Vedere anche
Categorie
Scopri di più su Linear Algebra in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!