Exemple #1
0
        public static Tup8 <long> OuterSum(Tup2 <long> x, Tup2 <long> y, Tup2 <long> z)
        {
            long y0z0 = y.E0 + z.E0, y1z0 = y.E1 + z.E0, y0z1 = y.E0 + z.E1, y1z1 = y.E1 + z.E1;

            return(new Tup8 <long>(x.E0 + y0z0, x.E1 + y0z0, x.E0 + y1z0, x.E1 + y1z0,
                                   x.E0 + y0z1, x.E1 + y0z1, x.E0 + y1z1, x.E1 + y1z1));
        }
Exemple #2
0
 public static Tup4 <long> OuterSum(Tup2 <long> x, Tup2 <long> y)
 {
     return(new Tup4 <long>(x.E0 + y.E0, x.E1 + y.E0,
                            x.E0 + y.E1, x.E1 + y.E1));
 }