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

Home MathPack Matrix Classes TIntMatrix, TMatrix and TMat3D Methods CopyFrom |
|||||||||||
| See also: CopyFromVec, Clone | |||||||||||
CopyFrom |
|||||||||||
The method CopyFrom copies a part of the matrix MatSource into its own data area (self). TMatrix can copy values from both TMatrix and TIntMatrix classes (overloaded versions [1] and [2]). The region to be copied is specified by the the parameters SourceColLo, SourceRowLo, SourceColHi, and SourceRowHi (see figure below). The destination area is defined by the parameters DestCol and DestRow. The element [DestCol,DestRow ] is filled by the value of the source matrix at address [SourceColLo,SourceRowLo ] and all other elements are copied to appropriate higher addresses. The figure below shows the copy process.
|
|||||||||||