public static float[] ConcatenateVector(VectorBase src1, float[] src2) { var dest = new float[src1.Length + src2.Length]; Parallel.Invoke(() => { src1.CopyTo().CopyTo(dest, 0); } , () => { src2.CopyTo(dest, src1.Length); }); return(dest); }
public static double[] ConcatenateVector(VectorBase src1, double[] src2) { double[] dest = new double[src1.Length + src2.Length]; Parallel.Invoke(() => { src1.CopyTo().CopyTo(dest, 0); } , () => { src2.CopyTo(dest, src1.Length); }); return(dest); }