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
Declaration: [1] procedure CopyFromArray (SrcArray: TDouble2DArray; Col, Row: integer); { class TMatrix }
[2] procedure CopyFromArray (SrcArray: TInt2DArray; Col, Row: integer); { class TIntMatrix }

The method CopyFromArray copies the cells of the dynamic array SrcArray into the matrix. The parameters Col and Row specify the first column and row to be used in the matrix (the cell SrcArray[0,0] is copied to self[Col,Row], all other cells are copied to higher indices, see figure below).

If the source array does not fit into the matrix all excess cells are ignored.

Last Update: 2017-Nov-23