Solves system of Frobenius equations.
Example: This gives all solutions of the system of Frobenius equations { 12 x + 16 y + 20 z + 27 t = 123, x + 3 z = 12}:
int[][] equations = {{12, 16, 20, 27, 123}, {1, 0, 3, 0, 12}}; FrobeniusSolver solver = new FrobeniusSolver(equations); int[] solution; while ((solution = solver.take()) != null) System.out.println(Arrays.toString(solution));
This class calculates solutions iteratively: method {@link #take()}calculates and returns the next solution or null, if no more solutions exist. So next solution will be calculated only on the invocation of {@link #take()}.
@author Dmitry Bolotin
@author Stanislav Poslavsky