Vector<T>.AddScaledAsLeftCore Method

Adds two vectors.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
protected virtual Vector<T> AddScaledAsLeftCore(
	T factor,
	Vector<T> right,
	Vector<T>? result
)

Parameters

factor  T
The scale factor for right.
right  Vector<T>
The right operand.
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 factor times right.

Exceptions

DimensionMismatchException

This vector and right do not have the same length.

See Also