Vector Extensions.One Norm Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
One | Returns the one-norm of a vector. |
One | Returns the one-norm of a vector. |
OneNorm<T>(Vector<T>)
Returns the one-norm of a vector.
public static T OneNorm<T>(
this Vector<T> vector
)
Parameters
- vector Vector<T>
- A vector.
Type Parameters
- T
Return Value
TThe one-norm of vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<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
The one-norm of a vector is equal to the sum of the absolute values of its elements.
OneNorm<T>(Vector<Complex<T>>)
Returns the one-norm of a vector.
public static T OneNorm<T>(
this Vector<Complex<T>> vector
)
Parameters
Type Parameters
- T
Return Value
TThe one-norm of vector.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Vector<Complex<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
The one-norm of a vector is equal to the sum of the absolute values of its elements.