Multiplies a scalar and a vector and puts the result into another vector.
Namespace:
CenterSpace.NMath.CoreAssembly: 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
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the two vectors are not of the same length. |