Click or drag to resize

DoubleComplexVectorAdd(DoubleComplexVector, DoubleComplexVector, DoubleComplexVector) Method

Adds two vectors and puts the result into a third vector.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static void Add(
	DoubleComplexVector u,
	DoubleComplexVector v,
	DoubleComplexVector w
)

Parameters

u  DoubleComplexVector
A vector.
v  DoubleComplexVector
A vector.
w  DoubleComplexVector
A vector to hold the result.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the three vectors are not all of the same length.
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:
C#
w[i] = u[i] + v[i]
No new memory is allocated. This increases efficiency for repeated operations, such as within loops.
See Also