Class Stirling.StirlingS1Cache
- java.lang.Object
-
- org.apache.commons.numbers.combinatorics.Stirling.StirlingS1Cache
-
- Enclosing class:
- Stirling
private static final class Stirling.StirlingS1Cache extends java.lang.Object
Precomputed Stirling numbers of the first kind. Provides a thread-safe lazy initialization of the cache.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
StirlingS1Cache()
-
-
-
Field Detail
-
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:
- Constant Field Values
-
S1
static final long[][] S1
Stirling numbers of the first kind.
-
-