Adds two vectors.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static FloatComplexVector operator +( FloatComplexVector v, FloatComplexVector w ) |
| Visual Basic (Declaration) |
|---|
Public Shared Operator + ( _ v As FloatComplexVector, _ w As FloatComplexVector _ ) As FloatComplexVector |
| Visual C++ |
|---|
public: static FloatComplexVector^ operator +( FloatComplexVector^ v, FloatComplexVector^ w ) |
Parameters
- v
- Type: CenterSpace.NMath.Core..::.FloatComplexVector
The left-hand vector.
- w
- Type: CenterSpace.NMath.Core..::.FloatComplexVector
The right-hand vector.
Return Value
A new vector containing the sum.
Remarks
u[i] = v[i] + w[i]
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the two vectors are not the same length. |