norm_2_real Function

public function norm_2_real(a) result(result)

function that calculates the Euclidean norm (L2 norm) of a vector , where where is the dimension of the real vector .

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in), dimension(:) :: a

Return Value real(kind=dp)


Called by

proc~~norm_2_real~~CalledByGraph proc~norm_2_real norm_2_real proc~normalise normalise proc~normalise->proc~norm_2_real proc~eigen Eigen proc~eigen->proc~normalise proc~is_spd is_SPD proc~is_spd->proc~eigen

Source Code

    function norm_2_real(a) result(result)

        real(dp), dimension(:), intent(in) :: a
        real(dp) :: result

        result = sqrt(dot_product(a, a))

    end function norm_2_real