 | DoubleVectorAdd(DoubleVector, DoubleVector, DoubleVector) Method |
Adds two vectors and puts the result into a third vector.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntaxpublic static void Add(
DoubleVector u,
DoubleVector v,
DoubleVector w
)
Public Shared Sub Add (
u As DoubleVector,
v As DoubleVector,
w As DoubleVector
)
public:
static void Add(
DoubleVector^ u,
DoubleVector^ v,
DoubleVector^ w
)
static member Add :
u : DoubleVector *
v : DoubleVector *
w : DoubleVector -> unit
Parameters
- u DoubleVector
- A vector.
- v DoubleVector
- A vector.
- w DoubleVector
- A vector to hold the result.
Exceptions
Remarks
This method is provided as an alternative to the standard two-parameter
Add() method. The third passed vector holds the result of adding
the first two vectors:
No new memory is allocated. This increases efficiency for repeated operations,
such as within loops.
See Also