Multiplies a scalar and a vector and puts the result into another vector.

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

Syntax

C#
public static void Multiply(
	float s,
	FloatVector u,
	FloatVector v
)
Visual Basic (Declaration)
Public Shared Sub Multiply ( _
	s As Single, _
	u As FloatVector, _
	v As FloatVector _
)
Visual C++
public:
static void Multiply(
	float s, 
	FloatVector^ u, 
	FloatVector^ v
)

Parameters

s
Type: System..::.Single
A scalar.
u
Type: CenterSpace.NMath.Core..::.FloatVector
A vector.
v
Type: CenterSpace.NMath.Core..::.FloatVector
A vector to hold the result.

Remarks

u[i] = s * v[i]

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the two vectors are not of the same length.

See Also