Linear Operator<T>.Add Product To Vector Method
Multiplies a Vector<T> by this instance
and stores the result in a second vector of type DenseVector<T>.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The vector resultVector.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
[ObsoleteAttribute("Use MultiplyAndAddInPlaceAsLeftFactorWith, ScaledMultiplyAsLeftWith, or one of their simpler variants instead.")]
public DenseVector<T> AddProductToVector(
T alpha,
Vector<T> vector,
TransposeOperation trans,
T beta,
DenseVector<T> resultVector
)
Parameters
- alpha T
- Multiplier for the vector-matrix product of this matrix with the vector vector.
- vector Vector<T>
- A Vector<T>.
- trans TransposeOperation
- A TransposeOperation value that specifies the operation, if any, to be performed on this instance before the multiplication.
- beta T
- Multiplier for the vector resultVector.
- resultVector DenseVector<T>
- The DenseVector<T> that is to contain the result of the multiplication.
Return Value
DenseVector<T>The vector resultVector.
Remarks
The length of the vector vector must equal the number of columns in this instance. The length of the vector resultVector must equal the number of rows.
Exceptions
Argument | vector is null.
-or- resultVector is null. |
Dimension | The
length of the vector resultVector does not equal the
number of columns of this matrix.
-or- The length of the vector vector does not equal the number of rows of this matrix. |