private void mergeArray(double[] targetArray, double[] sourceArray, double alpha) {

        for (int i = 0; i < targetArray.length; ++i) {
            targetArray[i] += alpha * sourceArray[i];
        }
    }