You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > Mul Method > TMtx.Mul Method (TMtx, TMtx, TMtxType, TMtxType, TMtxOperation, TMtxOperation)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.Mul Method (TMtx, TMtx, TMtxType, TMtxType, TMtxOperation, TMtxOperation)

Left side multiply Mtx2 with Mtx1 matrix and store the results in the calling matrix.

Pascal
function Mul(const Mtx1: TMtx; const Mtx2: TMtx; Mtx1Type: TMtxType; Mtx2Type: TMtxType = mtGeneral; Operation1: TMtxOperation = opNone; Operation2: TMtxOperation = opNone): TMtx; overload;

If parameters Mtx1Type and/or Mtx2Type are specified, the optimized multiplication method will be used. If parameters Mtx1Type and/or Mtx2Type are omitted, default values (general matrix) will be used. If Operation1 and/or Operation2 parameters are specified, perform additional operation on Mtx1 or Mtx2. If Operation1 and/or Operation2 parameters are omitted, the default values (no operation) will be used. The Rows, Cols and TMtxVec.ComplexComplexproperties of the calling matrix are adjusted automatically. An exception is raised is Mtx1 Cols property does not match the Mtx2 Rows property (matrix multiplication is not possible). An exception is raised, if Complex property of Mtx1 and Mtx2 does not match.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!