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



Clone


Unit:SDL_matrix
Class: TMatrix, TIntMatrix
Declaration: procedure Clone (MatSource: TMatrix); { class TMatrix }
procedure Clone (MatSource: TIntMatrix); { class TIntMatrix }

The method Clone resizes the matrix to the dimensions of matrix MatSource and copies the entire contents of MatSource into its own data area (self ).

Please note that cloning a matrix does not work if it is a sparse matrix while the source matrix is a normal matrix, and vice versa. In this case the call to Clone is ignored. In order to change the internal matrix organization from a sparse layout to a full array and vice versa, the methods SparseToArray  and ArrayToSparse have to be used.



Last Update: 2008-Okt-29