Skip to content
Prev 44669 / 398506 Next

a simple question about a matrix

"Liaw, Andy" <andy_liaw at merck.com> writes:
The symbol ||x|| could mean many different things when x is a matrix.
I presume that you mean some kind of matrix norm.  Could you be more
specific about which norm you want?  (There are several.)

The one-norm, the Frobenius norm, and the infinity norm are all
available in the new version of the Matrix package, which is currently
available only for the development version of R (to be R-1.9.0).
[,1]       [,2]      [,3]
[1,] -1.0210873  0.9941221  2.363475
[2,] -0.5171302 -0.3243187 -1.455873
[3,] -2.3793565  0.5223258 -1.034270
[1] 4.853617
[1] 4.853617
[1] 4.378684
[1] 4.136781
[1] 2.379356