Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function MulElem(Mtx: TOpenCLMatrix): TOpenCLMatrix; | Matrix array multiplication. |
| 2 | function MulElem(Mtx1: TOpenCLMatrix; Mtx2: TOpenCLMatrix): TOpenCLMatrix; | Multiplies elements in Mtx1 matrix with the elements in Mtx2 matrix (array multiplication) and stores the results in calling matrix. |
Overload 1: function MulElem(Mtx: TOpenCLMatrix): TOpenCLMatrix;
Matrix array multiplication.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TOpenCLMatrix | source TOpenCLMatrix |
Returns: TOpenCLMatrix
Remarks:
Multiplies elements in Mtx matrix with the elements in the calling matrix (array multiplication) and stores the results in calling matrix. The TOpenCLMatrix.Rows, clMatrix.Cols and TOpenCLBase.Complex properties of both matrices must match, otherwise an exception is raised.
Examples
var A,B,C: clMatrix;
begin
A.CopyFromArray(2,2,TSingleArray.Create(1,2,
2,4));
B.CopyFromArray(2,2,TSingleArray.Create(1,2,
2,4));
C.MulElem(A,B);
// C becomes:
// [1, 4,
// 4,16]
end;
See Also: clMatrix.InvElem
Overload 2: function MulElem(Mtx1: TOpenCLMatrix; Mtx2: TOpenCLMatrix): TOpenCLMatrix;
Multiplies elements in Mtx1 matrix with the elements in Mtx2 matrix (array multiplication) and stores the results in calling matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx1 | TOpenCLMatrix | source TOpenCLMatrix |
| 2 | Mtx2 | TOpenCLMatrix | source TOpenCLMatrix |
Returns: TOpenCLMatrix
Remarks:
The clMatrix.Rows, clMatrix.Cols and TOpenCLBase.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.