Matrix.Add Scaled<T>(Matrix<T>, Transpose Operation, T, Matrix<T>, Transpose Operation) Method
Adds a multiple of a matrix to another matrix
and returns the result.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A Matrix<T> that is the sum of the specified form of this matrix and the matrix right.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Matrix<T> AddScaled<T>(
Matrix<T> left,
TransposeOperation leftOperation,
T factor,
Matrix<T> right,
TransposeOperation rightOperation
)
Parameters
- left Matrix<T>
- The left operand of the addition.
- leftOperation TransposeOperation
- A TransposeOperation value that indicates which operation, if any, should be performed on this instance before adding.
- factor T
- Multiplier for the matrix right.
- right Matrix<T>
- A Matrix<T>.
- rightOperation TransposeOperation
- A TransposeOperation value that indicates which operation, if any, should be performed on the matrix right before adding.
Type Parameters
- T
Return Value
Matrix<T>A Matrix<T> that is the sum of the specified form of this matrix and the matrix right.
Remarks
This method does not change this instance. The dimensions of the two matrices must be compatible. Otherwise an exception of type DimensionMismatchException is thrown.
Exceptions
Argument | right is null. |
Dimension | THe dimensions of left and right as transformed by leftOperation and rightOperation, respectively, are not compatible. |