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....


Unit: SDL_matrix
Class: TMatrix, TIntMatrix, TMat3D
Declaration: function CRCofData: string;

The function CRCofData calculates a 256-bit CRC code (for TMatrix and TMat3D) or a 128-bit CRC code (for TIntMatrix) over all cells of the matrix. This CRC code is returned as a hexadecimal string of either 64 (TMatrix, TMat3D) or 32 (TIntMatrix) characters.

Hint: Please note that the CRC code cannot be unique but there is only an extremely small chance to get a hash code collision. Thus the CRC code can be used to check whether two matrices are different (if the CRCs differ the matrices must be different), however there is a very small chance that the CRCs of different matrices are equal.

Last Update: 2015-May-30