Scales the columns of the matrix by the values specified by a vector.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function ScaleColumns ( _ factors As Vector _ ) As Matrix |
| C# |
|---|
public Matrix ScaleColumns ( Vector factors ) |
| C++ |
|---|
public: Matrix^ ScaleColumns ( Vector^ factors ) |
Parameters
- factors (Extreme.Mathematics.LinearAlgebra.Vector)
- 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 | Condition |
|---|---|
| ArgumentNullException | factors is . |
| DimensionMismatchException | The length of factors does not equal the number of columns of the matrix. |