Matrix<T>.UnscaleRowsAndColumnsInPlace Method

Unscales the rows and columns of the matrix by the values specified by a vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
C#
public virtual Matrix<T> UnscaleRowsAndColumnsInPlace(
	Vector<T> factors
)

Parameters

factors  Vector<T>
A Vector<T> containing the scale factors.

Return Value

Matrix<T>
A reference to this instance.

Remarks

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

Exceptions

ArgumentNullException

factors is null.

DimensionMismatchException

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

See Also