TMtx::MulElem Method

Overload List

#SignatureDescription
1TMtx *MulElem(TMtx *Mtx);Matrix element-wise multiplication.
2TMtx *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.
3TMtx *MulElem(TMtxVec *X, TMtxVec *Y, TMtxVec *Z);Compute X*Y*Z
4TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const double Z);Compute X*Y*zScalar
5TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const TCplx &Z);Compute X*Y*zScalar

Overload 1: TMtx *MulElem(TMtx *Mtx);

Matrix element-wise multiplication.

#NameTypeDescription
1MtxTMtx *
Remarks:

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.

See Also: TMtx::InvElem
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

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.

#NameTypeDescription
1Mtx1TMtx *
2Mtx2TMtx *
Remarks:

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.

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 3: TMtx *MulElem(TMtxVec *X, TMtxVec *Y, TMtxVec *Z);

Compute X*Y*Z

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3ZTMtxVec *
Remarks:

The following expression would also run at the same or higher speed, when passing X also for the Z parameter:

X^2*Y

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 4: TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const double Z);

Compute X*Y*zScalar

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3Zconst double
Remarks:

The following expression would also run at the same or higher speed, when passing X also for the Z parameter:

X^2*zScalar

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 5: TMtx *MulElem(TMtxVec *X, TMtxVec *Y, const TCplx &Z);

Compute X*Y*zScalar

#NameTypeDescription
1XTMtxVec *
2YTMtxVec *
3Zconst TCplx &
Remarks:

The following expression would also run at the same or higher speed, when passing X also for the Z parameter:

X^2*zScalar

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler