stdlib_snrm2 Function

public pure function stdlib_snrm2(n, x, incx)

SNRM2 returns the euclidean norm of a vector via the function name, so that SNRM2 := sqrt( x'*x ).

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
real(kind=sp), intent(in) :: x(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=sp)