Vector.Product<T> Method
Returns the product of the components of a vector.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
The product of the components of vector.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
public static T Product<T>(
this Vector<T> vector
)
Parameters
Type Parameters
- T
Return Value
TThe product of the components 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 product of an empty vector is One. Missing-aware vectors skip missing values, so an all-missing vector returns the same value.