static void Main(string[] args) { { DVVector vec_in = new DVVector(new int[] { 1, 2, 1, 2, 1, 2, 1, 2 }); DVVector vec_out = new DVVector("int32_t", 8); TRTC.Adjacent_Difference(vec_in, vec_out); print_array((int[])vec_out.to_host()); } { DVVector vec_in = new DVVector(new int[] { 1, 2, 1, 2, 1, 2, 1, 2 }); DVVector vec_out = new DVVector("int32_t", 8); TRTC.Adjacent_Difference(vec_in, vec_out, new Functor("Plus")); print_array((int[])vec_out.to_host()); } }