Overload List
| # | Signature | Description |
|---|---|---|
| 1 | Boolean Init(TMtx A, TMtx B, TMtx C, TMtxOperation opA, TMtxOperation opB, TCplx Alpha, TCplx Beta) | Initialize matrix multiplication |
| 2 | Boolean Init(TMtx A, TMtx B, TMtx C, TMtxOperation opA, TMtxOperation opB, Double Alpha, Double Beta) | Initialize matrix multiplication |
| 3 | Boolean Init(Int32 ARows, Int32 ACols, Int32 BRows, Int32 BCols, TMtxFloatPrecision aFloatPrecision, TMtxOperation opA, TMtxOperation opB, TCplx Alpha, TCplx Beta) | Initialize matrix multiplication |
| 4 | Boolean Init(Int32 ARows, Int32 ACols, Int32 BRows, Int32 BCols, TMtxFloatPrecision aFloatPrecision, TMtxOperation opA, TMtxOperation opB, Double Alpha, Double Beta) | Initialize matrix multiplication |
Overload 1: Boolean Init(TMtx A, TMtx B, TMtx C, TMtxOperation opA, TMtxOperation opB, TCplx Alpha, TCplx Beta)
Initialize matrix multiplication
| # | Name | Description |
|---|---|---|
| 1 | A | Matrix A. |
| 2 | B | Matrix B. |
| 3 | C | Matrix C. |
| 4 | opA | Request matrix A transpose. |
| 5 | opB | Request matrix B transpose. |
| 6 | Alpha | Scaling factor. |
| 7 | Beta | Scaling factor. |
Returns: Boolean
Initializes computation of:
C = alpha*opA(A)*opB(B) + beta*C
The procedure will initialize matrix multiplication and create in-memory code specifically designed to multiply exactly these matrices with the specified operators. (just-in-time compilation).
This design makes the performance efficient multiplication of "small" matrices possible.
To perform actual multiplication call one of the Mul methods of this object. The matrices passed must unconditionally match the parameters (size and layout) as they had when they were passed to this (Init) routine.
The parameterless Mul routine assumes also the same memory locations at which matrices A, B and C store their data and is slightly faster than the alternative Mul method. This means, that A,B and C may not be resized after calling Init.
Init can be called multiple times. Each call will overwrite the previous settings. The alpha and beta parameters are specified as complex type, but only the real part will be used when A, B and C are not complex.
Returns true if JIT will be used and false otherwise. If the JIT will not be used standard dgemm routine will be called instead. The procedure of JIT compilation is about 1000x slower, than the actual multiply operation. The kernel(s) therefore must be prepared upfront.
The Init routine is protected against initializing with same parameters again and will simply exit and reuse the existing kernel.
Overload 2: Boolean Init(TMtx A, TMtx B, TMtx C, TMtxOperation opA, TMtxOperation opB, Double Alpha, Double Beta)
Initialize matrix multiplication
| # | Name | Description |
|---|---|---|
| 1 | A | Matrix A. |
| 2 | B | Matrix B. |
| 3 | C | Matrix C. |
| 4 | opA | Request matrix A transpose. |
| 5 | opB | Request matrix B transpose. |
| 6 | Alpha | Scaling factor. |
| 7 | Beta | Scaling factor. |
Returns: Boolean
Initializes computation of:
C = alpha*opA(A)*opB(B) + beta*C
The procedure will initialize matrix multiplication and create in-memory code specifically designed to multiply exactly these matrices with the specified operators. (just-in-time compilation).
This design makes the performance efficient multiplication of "small" matrices possible.
To perform actual multiplication call one of the Mul methods of this object. The matrices passed must unconditionally match the parameters (size and layout) as they had when they were passed to this (Init) routine.
The parameterless Mul routine assumes also the same memory locations at which matrices A, B and C store their data and is slightly faster than the alternative Mul method. This means, that A,B and C may not be resized after calling Init.
Init can be called multiple times. Each call will overwrite the previous settings. The alpha and beta parameters are specified as complex type, but only the real part will be used when A, B and C are not complex.
The Init routine is protected against initializing with same parameters again and will simply exit and reuse the existing kernel.
Returns true if JIT will be used and false otherwise. If the JIT will not be used standard dgemm routine will be called instead. The procedure of JIT compilation is about 1000x slower, than the actual multiply operation.
Overload 3: Boolean Init(Int32 ARows, Int32 ACols, Int32 BRows, Int32 BCols, TMtxFloatPrecision aFloatPrecision, TMtxOperation opA, TMtxOperation opB, TCplx Alpha, TCplx Beta)
Initialize matrix multiplication
| # | Name | Description |
|---|---|---|
| 1 | ARows | Matrix A row count. |
| 2 | ACols | Matrix A column count. |
| 3 | BRows | Matrix B row count. |
| 4 | BCols | Matrix B column count. |
| 5 | opA | Request matrix A transpose. |
| 6 | opB | Request matrix B transpose. |
| 7 | Alpha | Scaling factor. |
| 8 | Beta | Scaling factor. |
| 9 | aFloatPrecision | The storage precision of all three matrices, A, B and C. |
Returns: Boolean
Initializes computation of:
C = alpha*opA(A)*opB(B) + beta*C
Returns true if JIT will be used and false otherwise. If the JIT will not be used, the standard dgemm routine will be called instead. The procedure of JIT compilation is about 1000x slower, than the actual multiply operation. The kernel(s) therefore must be prepared upfront.
The Init routine is protected against initializing with same parameters again and will simply exit and reuse the existing kernel.
Overload 4: Boolean Init(Int32 ARows, Int32 ACols, Int32 BRows, Int32 BCols, TMtxFloatPrecision aFloatPrecision, TMtxOperation opA, TMtxOperation opB, Double Alpha, Double Beta)
Initialize matrix multiplication
| # | Name | Description |
|---|---|---|
| 1 | ARows | Matrix A row count. |
| 2 | ACols | Matrix A column count. |
| 3 | BRows | Matrix B row count. |
| 4 | BCols | Matrix B column count. |
| 5 | opA | Request matrix A transpose. |
| 6 | opB | Request matrix B transpose. |
| 7 | Alpha | Scaling factor. |
| 8 | Beta | Scaling factor. |
| 9 | aFloatPrecision | The storage precision of all three matrices, A, B and C. |
Returns: Boolean
Initializes computation of:
C = alpha*opA(A)*opB(B) + beta*C
Returns true if JIT will be used and false otherwise. If the JIT will not be used standard dgemm routine will be called instead. The procedure of JIT compilation is about 1000x slower, than the actual multiply operation. The kernel(s) therefore must be prepared upfront.
The Init routine is protected against initializing with same parameters again and will simply exit and reuse the existing kernel.