Vector.Add Scaled<T> Method
Adds two vectors.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
A vector whose elements are the sum of the corresponding elements of left and right.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
public static Vector<T> AddScaled<T>(
Vector<T> left,
T factor,
Vector<T> right
)
Parameters
Type Parameters
- T
Return Value
Vector<T>A vector whose elements are the sum of the corresponding elements of left and right.
Remarks
If result is null, the operation chooses the result representation. Otherwise, result is overwritten, returned, and its representation is preserved. The result may alias either vector operand.
Exceptions
| Argument | left is null. -or- right is null. |
| Dimension | left and right do not have the same length. |