Class Stirling.StirlingS2Cache
java.lang.Object
org.apache.commons.numbers.combinatorics.Stirling.StirlingS2Cache
- Enclosing class:
Stirling
Precomputed Stirling numbers of the second kind.
Provides a thread-safe lazy initialization of the cache.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_N
static final int MAX_NMaximum 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[][] S2Stirling numbers of the second kind.
-
-
Constructor Details
-
StirlingS2Cache
private StirlingS2Cache()
-