Matrix.AddScaledInto<T>(Matrix<T>, T, Matrix<T>, Matrix<T>) 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#
public static Matrix<T> AddScaledInto<T>(
	Matrix<T> left,
	T factor,
	Matrix<T> right,
	Matrix<T> result
)

Parameters

left  Matrix<T>
The left operand of the addition.
factor  T
Multiplier for the matrix right.
right  Matrix<T>
A Matrix<T>.
result  Matrix<T>
The matrix that is to hold the result. May be null.

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

ArgumentNullExceptionright is null.
DimensionMismatchExceptionThe dimensions of this instance and the matrix right are not compatible for the specified operation.

See Also