Package jline.lib.perm
Class PermSolver
-
- All Implemented Interfaces:
public abstract class PermSolverAbstract base class for permanent computation solvers.
This abstract class provides the common interface for all permanent computation algorithms. All solvers inherit from this class and implement the compute() method for their specific algorithm. The base class provides the solve() method that measures time and memory usage during computation.
-
-
Constructor Summary
Constructors Constructor Description PermSolver(Matrix matrix)
-
Method Summary
Modifier and Type Method Description final IntegergetN()The dimension of the matrix final DoublegetValue()The computed permanent value (set by compute() method) final UnitsetValue(Double value)The computed permanent value (set by compute() method) final LonggetTime()The computation time in milliseconds final UnitsetTime(Long time)The computation time in milliseconds final LonggetMemory()The memory usage in bytes final UnitsetMemory(Long memory)The memory usage in bytes final MatrixgetMatrix()The matrix for which to compute the permanent abstract Unitcompute()Compute the permanent or approximation for the given matrix. final Unitsolve()Measure time and memory usage of the compute method.
-