You are here: Symbol Reference > MtxVec Namespace > Classes > TSmallMatrixMultiply Class > public > Init Method > TSmallMatrixMultiply.Init Method (integer, integer, integer, integer, TMtxFloatPrecision, TMtxOperation, TMtxOperation, TCplx, TCplx)
MtxVec VCL
ContentsIndex
PreviousUpNext
TSmallMatrixMultiply.Init Method (integer, integer, integer, integer, TMtxFloatPrecision, TMtxOperation, TMtxOperation, TCplx, TCplx)

Initialize matrix multiplication

Pascal
function Init(const aRows: integer; const aCols: integer; const bRows: integer; const bCols: integer; aFloatPrecision: TMtxFloatPrecision; opA: TMtxOperation; opB: TMtxOperation; const Alpha: TCplx; const Beta: TCplx): boolean; overload;
Parameters 
Description 
aRows 
Matrix A row count. 
aCols 
Matrix A column count. 
bRows 
Matrix B row count. 
bCols 
Matrix B column count. 
aFloatPrecision 
The storage precision of all three matrices, A, B and C. 
opA 
Request matrix A transpose. Request matrix B transpose. 
Alpha 
Scaling factor. 
Beta 
Scaling factor. 

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.

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