Class Stirling.StirlingS2Cache

java.lang.Object
org.apache.commons.numbers.combinatorics.Stirling.StirlingS2Cache
Enclosing class:
Stirling

private static final class Stirling.StirlingS2Cache extends Object
Precomputed Stirling numbers of the second kind. Provides a thread-safe lazy initialization of the cache.
  • Field Details

    • MAX_N

      static final int MAX_N
      Maximum n to compute (exclusive). As S(26,9) = 11201516780955125625 is larger than Long.MAX_VALUE we must stop computation at row 26.
      See Also:
    • S2

      static final long[][] S2
      Stirling numbers of the second kind.
  • Constructor Details

    • StirlingS2Cache

      private StirlingS2Cache()