Package edu.jas.util

Class CartesianProductLong

java.lang.Object
edu.jas.util.CartesianProductLong
All Implemented Interfaces:
Iterable<List<Long>>

public class CartesianProductLong extends Object implements Iterable<List<Long>>
Cartesian product for Long with iterator. Similar to CartesianProduct but returns only tuples of given total degree.
  • Field Details

    • comps

      public final List<LongIterable> comps
      data structure.
    • upperBound

      public final long upperBound
  • Constructor Details

    • CartesianProductLong

      public CartesianProductLong(List<LongIterable> comps, long ub)
      CartesianProduct constructor.
      Parameters:
      comps - components of the Cartesian product.
      ub - an upper bound for the total degree of the elements.
  • Method Details