LinearAlgebraOperationsExtensions.TwoNorm<T>(ILinearAlgebraOperations<T>, Int32, ReadOnlySpanSlice<T>) Method

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

Definition

Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 9.0.0
C#
public static T TwoNorm<T>(
	this ILinearAlgebraOperations<T> operations,
	int n,
	ReadOnlySpanSlice<T> x
)

Parameters

operations  ILinearAlgebraOperations<T>
 
n  Int32
 
x  ReadOnlySpanSlice<T>
 

Type Parameters

T

Return Value

T

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILinearAlgebraOperations<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

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

See Also