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 LoadBinary (FName: string): integer;

The method LoadBinary loads the entire data matrix (which has been previously stored by the method SaveBinary) from the file FName. The matrix is resized accordingly.

The function returns the following error codes:

 0 ... everything is OK
-1 ... unexpected type of variable
-2 ... binary matrix file is not 2D (3D) matrix
-3 ... not enough memory, matrix is too big
-5 ... file FName does not exist

Hint: The method LoadBinary triggers the OnPercentDone event to allow implementing a progress indicator when working with large files.

Last Update: 2020-Aug-14