Vector<T>.Add Scaled Product In Place(T, Linear Operator<T>, Vector<T>) Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A reference to this instance.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public virtual Vector<T> AddScaledProductInPlace(
T factor,
LinearOperator<T> matrix,
Vector<T> vector
)
Parameters
- factor T
- The scale factor for the matrix-vector product.
- matrix LinearOperator<T>
- A Matrix<T>.
- vector Vector<T>
- A vector.
Return Value
Vector<T>A reference to this instance.
Remarks
Using this method is more efficient than evaluating the equivalent expression using overloaded operators. In the latter case, three intermediate vectors are created. This method doesn't create any intermediate vectors.
Exceptions
Argument | matrix is null -or- vector is null |
Dimension |
The number of rows of matrix does not equal the length of this instance.
-or- The number of columns of matrix does not equal the length of vector. |