Calculates the product of a given vector's elements.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static float Product(
	FloatVector v
)
Visual Basic (Declaration)
Public Shared Function Product ( _
	v As FloatVector _
) As Single
Visual C++
public:
static float Product(
	FloatVector^ v
)

Parameters

v
Type: CenterSpace.NMath.Core..::.FloatVector
A vector.

Return Value

The product of the elements in v.

Remarks

product = v[0] * v[1] * v[2]...

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if v has zero length.

See Also