Scales the rows of the matrix by the values specified by a vector.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<T> ScaleRowsInto<T>(
Matrix<T> matrix,
Vector<T> factors,
Matrix<T> result
)
Public Shared Function ScaleRowsInto(Of T) (
matrix As Matrix(Of T),
factors As Vector(Of T),
result As Matrix(Of T)
) As Matrix(Of T)
public:
generic<typename T>
static Matrix<T>^ ScaleRowsInto(
Matrix<T>^ matrix,
Vector<T>^ factors,
Matrix<T>^ result
)
static member ScaleRowsInto :
matrix : Matrix<'T> *
factors : Vector<'T> *
result : Matrix<'T> -> Matrix<'T>
Parameters
- matrix
- Type: Extreme.MathematicsMatrixT
A matrix. - factors
- Type: Extreme.MathematicsVectorT
A vector containing the scale factors. - result
- Type: Extreme.MathematicsMatrixT
The matrix that is to hold the result. May be .
Type Parameters
- T
Return Value
Type:
MatrixTA reference to this instance.
This method is equivalent to pre-multiplying the matrix with a diagonal matrix
with factors as the main diagonal.
Reference