private static string GetFullCode() { string identity = "return a;"; PermutationGenerator result = new PermutationGenerator(); result.AddReduceAll("sumAll", identity, "return a + b;"); result.AddReduceAll("prodAll", identity, "return a * b;"); result.AddReduceAll("minAll", identity, "return min(a, b);"); result.AddReduceAll("maxAll", identity, "return max(a, b);"); result.AddReduceAll("e0_norm", "return a != 0 ? 1 : 0;", "return a + b;"); result.AddReduceAll("e1_norm", "return fabsf(a);", "return a + b;"); result.AddReduceAll("e2_norm", "return a * a;", "return a + b;"); result.AddReduceAllNorm("en_norm"); result.AddReduceAllSubSquare("subSquare"); return result.ToString(); }