GenericLinearAlgebraOperations<T>.TwoNorm Method

Definition

Namespace: Numerics.NET.LinearAlgebra.Implementation
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3

Overload List

TwoNorm(Int32, ArraySlice<Complex<T>>) 
TwoNorm(Int32, ArraySlice<Complex<T>>)

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

TwoNorm(Int32, ReadOnlySpanSlice<Complex<T>>)

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

TwoNorm(Int32, ReadOnlySpan<T>, Int32)

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

TwoNorm(Int32, ReadOnlySpan<Complex<T>>, Int32)

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

TwoNorm(Int32, ReadOnlySpan<T>, Int32)

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

C#
public override T TwoNorm(
	int n,
	ReadOnlySpan<T> x,
	int incx
)

Parameters

n  Int32
The number of elements in the vector x.
x  ReadOnlySpan<T>
A span containing the elements of the vector x.
incx  Int32
The distance between elements in x.

Return Value

T

Implements

ILinearAlgebraOperations<T>.TwoNorm(Int32, ReadOnlySpan<T>, Int32)

Remarks

Further Details:

-- This version written on 25-October-1982.

            Modified on 14-October-1993 to inline the call to ZLASSQ.
            Sven Hammarling, Nag Ltd.
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

TwoNorm(Int32, ReadOnlySpan<Complex<T>>, Int32)

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

C#
public override T TwoNorm(
	int n,
	ReadOnlySpan<Complex<T>> x,
	int incx
)

Parameters

n  Int32
 
x  ReadOnlySpan<Complex<T>>
 
incx  Int32
 

Return Value

T

Remarks

Further Details:

-- This version written on 25-October-1982.

            Modified on 14-October-1993 to inline the call to ZLASSQ.
            Sven Hammarling, Nag Ltd.
            

Authors: Univ. of Tennessee, Univ. of California Berkeley, Univ. of Colorado Denver, NAG Ltd.

Date: November 2011

See Also