Contents Previous Next Subchapters

Computing The Euclidean Norm Of Each Row Of A Matrix
Syntax rownorm(x)
See Also rowmax , colnorm

Returns the Euclidean norm of each row of x where x is a real, double-precision, or complex matrix. The return value is a column vector with the same number of rows as x. If x is complex, the return value is double-precision, otherwise the return value has the same type as x. The i-th element of the return value is
        /      2         2                2
       / |x   |  + |x   | + . . . + |x   |
     \/    i,1       i,2              i,m
where m is the number of columns in the matrix x.

If you enter
     x = {[1., 1.], [3., 4.]}
O-Matrix will respond