Class Stirling.StirlingS1Cache
java.lang.Object
org.apache.commons.numbers.combinatorics.Stirling.StirlingS1Cache
- Enclosing class:
Stirling
Precomputed Stirling numbers of the first 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(21,3) = 13803759753640704000 is larger than Long.MAX_VALUE we must stop computation at row 21.- See Also:
-
S1
static final long[][] S1Stirling numbers of the first kind.
-
-
Constructor Details
-
StirlingS1Cache
private StirlingS1Cache()
-