Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Vector<T> AddScaledProductInPlace(
T factor,
LinearOperator<T> matrix,
Vector<T> vector
)
Public Overridable Function AddScaledProductInPlace (
factor As T,
matrix As LinearOperator(Of T),
vector As Vector(Of T)
) As Vector(Of T)
public:
virtual Vector<T>^ AddScaledProductInPlace(
T factor,
LinearOperator<T>^ matrix,
Vector<T>^ vector
)
abstract AddScaledProductInPlace :
factor : 'T *
matrix : LinearOperator<'T> *
vector : Vector<'T> -> Vector<'T>
override AddScaledProductInPlace :
factor : 'T *
matrix : LinearOperator<'T> *
vector : Vector<'T> -> Vector<'T>
Parameters
- factor
- Type: T
The scale factor for the matrix-vector
product. - matrix
- Type: Extreme.Mathematics.LinearAlgebraLinearOperatorT
A MatrixT. - vector
- Type: Extreme.MathematicsVectorT
A vector.
Return Value
Type:
VectorTA reference to this instance.
Exception | Condition |
---|
ArgumentNullException | matrix is -or- vector is |
DimensionMismatchException |
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. |
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.
Reference