public static Tup16 <long> OuterSum(Tup4 <long> x, Tup4 <long> y) { return(new Tup16 <long>(x.E0 + y.E0, x.E1 + y.E0, x.E2 + y.E0, x.E3 + y.E0, x.E0 + y.E1, x.E1 + y.E1, x.E2 + y.E1, x.E3 + y.E1, x.E0 + y.E2, x.E1 + y.E2, x.E2 + y.E2, x.E3 + y.E2, x.E0 + y.E3, x.E1 + y.E3, x.E2 + y.E3, x.E3 + y.E3)); }
public TRes Sample4 <T1, TRes>( long d0, Tup4 <long> d1, Tup4 <T1> w, FuncRef1 <Td, Td, Td, Td, Tup4 <T1>, TRes> smp) => smp(Data[d0 + d1.E0], Data[d0 + d1.E1], Data[d0 + d1.E2], Data[d0 + d1.E3], ref w);