DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


Clone1DArray

Declaration: Clone1DArray (InVec: TDoubleArray; var TargetVec: TDoubleArray): integer;
Copies the contents of the 1-dimensional array InVec to the 1D array TargetVec. The array TargetVec is automatically resized to match the size of InVec. The function returns the following error codes:
 0 ... everything is OK
-1 ... the source matrix has zero size
Hint: Please note that the statement "Arr1 := Arr2;" does not copy the contents of array Arr2 into array Arr1. It simply copies the pointer to Arr2 into the variable Arr1 which in effect means that both variables are using the same memory after the assignment.