Matrix.UnscaleRows<T> Method

Unscales the rows of the matrix by the reciprocal of the values specified by a vector.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> UnscaleRows<T>(
	Matrix<T> matrix,
	Vector<T> factors
)

Parameters

matrix  Matrix<T>
A matrix.
factors  Vector<T>
A vector containing the scale factors.

Type Parameters

T

Return Value

Matrix<T>
A reference to this instance.

Remarks

This method is equivalent to pre-multiplying the matrix with a diagonal matrix with factors as the main diagonal.

Exceptions

ArgumentNullExceptionfactors is .
DimensionMismatchException The length of factors does not equal the number of rows of the matrix.

See Also