public float norm ( ) { float sum = 0 ; for ( int r = 0 ; r < m_nRows ; ++ r ) { for ( int c = 0 ; c < m_nCols ; ++ c ) { final float v = m_aValues [ r ] [ c ] ; sum += v * v ; } } return ( float ) Math . sqrt ( sum ) ; }
Compute the Euclidean norm of this matrix .