public static void Test(NandConfiguration config, int size) { bool[] permutations = new bool[size]; for (var i = 0; i < size; i++) { permutations[i] = false; } var length = Math.Pow(2, size); for (var i = 0; i < length; i++) { for (var sz = 0; sz < size; sz++) { var factor = (i + 1) % (sz + 1); if (factor == 0) { permutations[sz] = !permutations[sz]; } } Console.WriteLine($"{string.Join(',', permutations)}:{config.Calc(permutations)}"); } }
public void ComposerInit(int parameterCount) { _configuration = new NandConfiguration(parameterCount); }