Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx *MulElem(TMtx *Mtx); | Matrix element-wise multiplication. |
| 2 | TMtx *MulElem(TMtx *Mtx1, TMtx *Mtx2); | Multiplies elements in Mtx1 matrix with the elements in Mtx2 matrix (array multiplication) and stores the results in calling matrix. |
| 3 | TMtx *MulElem(TMtxVec *X, TMtxVec *Y, TMtxVec *Z); | Compute X*Y*Z |
| 4 | TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const double Z); | Compute X*Y*zScalar |
| 5 | TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const TCplx &Z); | Compute X*Y*zScalar |
Overload 1: TMtx *MulElem(TMtx *Mtx);
Matrix element-wise multiplication.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx * |
Multiplies elements in Mtx matrix with the elements in the calling matrix (array multiplication) and stores the results in calling matrix. The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of both matrices must match, otherwise an exception is raised.
Overload 2: TMtx *MulElem(TMtx *Mtx1, TMtx *Mtx2);
Multiplies elements in Mtx1 matrix with the elements in Mtx2 matrix (array multiplication) and stores the results in calling matrix.
The TMtx::Rows, TMtx::Cols and TMtx::Complex properties of calling matrix are set implicitly to match those of Mtx1 and Mtx2 matrices. Mtx1 and Mtx2 Rows, Cols, and Complex properties must be the same, otherwise an excetion is raised. raised.
Overload 3: TMtx *MulElem(TMtxVec *X, TMtxVec *Y, TMtxVec *Z);
Compute X*Y*Z
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | TMtxVec * |
The following expression would also run at the same or higher speed, when passing X also for the Z parameter:
X^2*Y
Overload 4: TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const double Z);
Compute X*Y*zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | const double |
The following expression would also run at the same or higher speed, when passing X also for the Z parameter:
X^2*zScalar
Overload 5: TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const TCplx &Z);
Compute X*Y*zScalar
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TMtxVec * | |
| 2 | Y | TMtxVec * | |
| 3 | Z | const TCplx & |
The following expression would also run at the same or higher speed, when passing X also for the Z parameter:
X^2*zScalar