|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home MathPack Matrix Classes TIntMatrix, TMatrix and TMat3D Methods Square|
|See also: CalcCovar|
The method Square calculates the square of the matrix and stores the results in the matrix MatRes which is automatically resized. The parameter Norm determines the normalisation factor which is used to divide the elements of the result matrix. The function returns a TRUE value if the result is valid, a FALSE value indicates that the calculation has been aborted by the user (by means of setting AbortMathProc to TRUE).
The function Square is available in two overloaded versions: version  automatically switches to multiprocessing if more than one CPU core is available. This speeds up calculations by a factor which is roughly proportional to the number of available hardware codes (supported only for Delphi/C++Builder XE4 or higher). Version  allows you to control the number of cores to be used for the calculation by setting the parameter NThreads.