示例#1
0
        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);
        }
示例#2
0
        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);
        }