[Numpy-discussion] matrix norm
Inati, Souheil (NIH/NIMH) [E]
Mon Oct 22 11:20:11 CDT 2012
matlab default is the 2-norm.
norm(X) is equivalent to norm(X,2)
norm(X,'fro') is the frobenius norm.
There are others and some special cases for vectors.
On Oct 22, 2012, at 12:14 PM, Jason Grout wrote:
> On 10/22/12 11:08 AM, Charles R Harris wrote:
>> The 2-norm and the Frobenius norm are the same thing.
> For vectors, but I was talking about matrices and induced p-norms (sorry
> for not being clear). Warren pointed out that the spectral norm (the
> induced 2-norm) is used in Octave as the default. Does someone have
> matlab to test their implementation? The fact that matlab has a
> separate command for the Frobenius norm indicates that they also may be
> using the spectral norm for the default matrix norm.
> NumPy-Discussion mailing list
More information about the NumPy-Discussion