Class Stirling.StirlingS1Cache

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

private static final class Stirling.StirlingS1Cache extends Object
Precomputed Stirling numbers of the first 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(21,3) = 13803759753640704000 is larger than Long.MAX_VALUE we must stop computation at row 21.
      See Also:
    • S1

      static final long[][] S1
      Stirling numbers of the first kind.
  • Constructor Details

    • StirlingS1Cache

      private StirlingS1Cache()