Documentation API of the 'cc.redberry.core.solver.frobenius.FrobeniusSolver' Java class
FrobeniusSolver
cc.redberry.core.solver.frobenius

Class FrobeniusSolver

  • All Implemented Interfaces:
    OutputPort<int[]>


    public final class FrobeniusSolverextends Objectimplements OutputPort<int[]>
    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 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 take().

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.