src/matrix.cpp
/**
 * @brief Calculate the euclidean norm
 *
 * Calculate the euclidean norm from the
 * values within the matrix.
 *
 * @return The euclidean norm
 */
@brief Calculate the euclidean norm
Calculate the euclidean norm from the
values within the matrix.

@return The euclidean norm
@brief Calculate the euclidean norm Calculate the euclidean norm from the values within the matrix . @return The euclidean norm
double Matrix::norm() const {
    double n = 1;
    for (int j = 0; j < 2; ++j) {
        double helper = 0;
        for (int i = 0; i < 2; ++i) {
            helper = helper + matrix[i][j];
        }
        n = n * helper;
    }
    return sqrt(n);
}
double Matrix :: norm ( ) const { double n = 1 ; for ( int j = 0 ; j < 2 ; ++ j ) { double helper = 0 ; for ( int i = 0 ; i < 2 ; ++ i ) { helper = helper + matrix [ i ] [ j ] ; } n = n * helper ; } return sqrt ( n ) ; }
@brief Calculate the euclidean norm
 Calculate the euclidean norm from the
 values within the matrix.
@brief Calculate the euclidean norm Calculate the euclidean norm from the values within the matrix .