Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Matrix Class > Methods


Extreme Optimization Mathematics Library for .NET

Matrix.ScaleColumns Method 

Scales the columns of the matrix by the values specified by a vector.

[Visual Basic]
Public Function ScaleColumns( _
   ByVal factors As Vector _
) As Matrix
[C#]
public Matrix ScaleColumns(
   Vector factors
);

Parameters

factors
A Vector containing the scale factors.

Return Value

A reference to this instance.

Remarks

This method is equivalent to multiplying the matrix on the right with a diagonal matrix with factors as the main diagonal.

Exceptions

Exception TypeCondition
ArgumentNullExceptionfactors is .
DimensionMismatchException The length of factors does not equal the number of columns of the matrix.

See Also

Matrix Class | Extreme.Mathematics.LinearAlgebra Namespace | UnscaleColumns