nrm2 Interface

public interface nrm2

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


Functions

public pure function dnrm2(n, x, incx)

Arguments

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

Return Value real(kind=dp)

public pure function dznrm2(n, x, incx)

Arguments

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

Return Value real(kind=dp)

public pure function scnrm2(n, x, incx)

Arguments

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

Return Value real(kind=sp)

public pure function snrm2(n, x, incx)

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)

Module Procedures

public pure function stdlib_dnrm2(n, x, incx)

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

Arguments

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

Return Value real(kind=dp)

public pure function stdlib_dznrm2(n, x, incx)

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

Arguments

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

Return Value real(kind=dp)

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)

public pure function stdlib_scnrm2(n, x, incx)

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

Arguments

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

Return Value real(kind=sp)