DenseVector<T, TStorage>.AddScaledAsLeftCore Method

Adds two vectors.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
protected override 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