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 ReadBinaryHeader (FName: string; var NrColumns, NrRows: integer; var DataID: string; var Format: integer): boolean;

The function ReadBinaryHeader reads the header of the binary data file FName and returns the dimension of the matrix in the variable parameters NrColumns and NrRows. The variable parameter DataID returns the ID string of the matrix. The numeric format of the data file is returned in the variable parameter Format:
1 = double
2 = integer
3 = single
4 = int64

The function value returns TRUE if the data in the binary file represents a valid TMatrix/TIntMatrix/TMat3D structure.

Hint: The file must not be open when calling ReadBinaryHeader.

Last Update: 2019-Sep-16