Vector<T>.Add Core Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Add | Adds a constant to a vector in-place. |
Add | Adds two vectors. |
AddCore(T, Vector<T>)
Adds a constant to a vector in-place.
protected virtual Vector<T> AddCore(
T value,
Vector<T>? result
)
Parameters
Return Value
Vector<T>A vector whose elements are the sum of the corresponding elements of this vector and value.
AddCore(Vector<T>, Vector<T>)
Adds two vectors.
protected virtual Vector<T> AddCore(
Vector<T> other,
Vector<T>? result
)
Parameters
- other Vector<T>
- The second vector.
- result Vector<T>
- The vector that is to hold the result. May be null.
Return Value
Vector<T>A vector whose elements are the sum of the corresponding elements of this vector and other.
Exceptions
Dimension | This vector and other do not have the same length. |