Scales the rows 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 ScaleRows ( _ factors As Vector _ ) As Matrix |
| C# |
|---|
public Matrix ScaleRows ( Vector factors ) |
| C++ |
|---|
public: Matrix^ ScaleRows ( 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 pre-multiplying the matrix 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 rows of the matrix. |