Matrix.MulDiagRight Method

Overload List

#SignatureDescription
1TMtx MulDiagRight(TMtx Mtx, TVec DiagMtx)Multiply matrix with diagonal matrix from the right.
2TMtx MulDiagRight(TVec DiagMtx)Multiply matrix with diagonal matrix from the right.

Overload 1: TMtx MulDiagRight(TMtx Mtx, TVec DiagMtx)

Multiply matrix with diagonal matrix from the right.

#NameTypeDescription
1MtxTMtxsource TMtx
2DiagMtxTVecsource TVec

Result: stored in self (calling object), returns self for chaining

Remarks:

DiagMtx contains the values of the main diagional of the diagonal matrix. Other values of the DiagMtx matrix are assumed to be zero. DiagMtx.Length must be equal to Self.Rows. This operation is the same as calling TMtx.ScaleCols.

Overload 2: TMtx MulDiagRight(TVec DiagMtx)

Multiply matrix with diagonal matrix from the right.

#NameTypeDescription
1DiagMtxTVecsource TVec

Result: stored in self (calling object), returns self for chaining

Remarks:

DiagMtx contains the values of the main diagional of the diagonal matrix. Other values of the DiagMtx matrix are assumed to be zero. DiagMtx.Length must be equal to Self.Rows. This operation is the same as calling TMtx.ScaleCols.