|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 CopyFromVec|
|See also: CopyColToVec, CopyRowToVec, CopyFrom, CopyFrom (DataTable)|
The method CopyFromVec copies a part of the external vector VecSource into its own data area (self ). The source vector is an instance of class TVector. The elements to be copied are specified by the the parameters Source1stElem, and SourceLastElem.
While version  always copies column vectors, version  of the method allows to specify the orientation of the vector to be copied. The parameter Dim may assume either dimX (row vector) or dimY (column vector), other values are ignored.
The destination position is defined by the parameters DestCol and DestRow. The element [DestCol, DestRow ] is filled by the value of the source vector at address [Source1stElem, SourceLastElem ] and all other elements are copied to higher addresses accordingly.