Matrix.AddScaledProduct<T>(Matrix<T>, T, Matrix<T>, Matrix<T>) Method

Adds the scaled product of two matrices to another matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> AddScaledProduct<T>(
	this Matrix<T> left,
	T factor,
	Matrix<T> leftFactor,
	Matrix<T> rightFactor
)

Parameters

left  Matrix<T>
The left operand of the addition.
factor  T
The scale factor for the matrix-matrix product.
leftFactor  Matrix<T>
A matrix that acts as the left operand of the multiplication.
rightFactor  Matrix<T>
The right operand of the multiplication.

Type Parameters

T

Return Value

Matrix<T>
The sum of left with factor times the product of leftFactor with rightFactor.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Matrix<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also