LinearAlgebraOperations<T>.TwoNorm Method

Definition

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

Overload List

TwoNorm(Int32, ArraySlice<T>)

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

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
               DNRM2 := sqrt( x'*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, ArraySlice<T>)

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

C#
public T TwoNorm(
	int n,
	ArraySlice<T> x
)

Parameters

n  Int32
 
x  ArraySlice<T>
 

Return Value

T

Remarks

Further Details:

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

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

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

Date: November 2011

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

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

C#
public T TwoNorm(
	int n,
	ArraySlice<Complex<T>> x
)

Parameters

n  Int32
 
x  ArraySlice<Complex<T>>
 

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

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

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

C#
public T TwoNorm(
	int n,
	ReadOnlySpanSlice<Complex<T>> x
)

Parameters

n  Int32
 
x  ReadOnlySpanSlice<Complex<T>>
 

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

TwoNorm(Int32, ReadOnlySpan<T>, Int32)

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

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

Parameters

n  Int32
 
x  ReadOnlySpan<T>
 
incx  Int32
 

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 DLASSQ.
            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 abstract 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