Added global BinomialCoefficients instance
This commit is contained in:
parent
05863842df
commit
3f7fb4a548
|
@ -44,6 +44,9 @@ type
|
|||
function GetCachedRowsCount: Cardinal;
|
||||
end;
|
||||
|
||||
var
|
||||
BinomialCoefficients: TBinomialCoefficientCache;
|
||||
|
||||
implementation
|
||||
|
||||
{ TBinomialCoefficientCache }
|
||||
|
@ -92,5 +95,11 @@ begin
|
|||
Result := FCache.Count;
|
||||
end;
|
||||
|
||||
initialization
|
||||
BinomialCoefficients := TBinomialCoefficientCache.Create;
|
||||
|
||||
finalization
|
||||
BinomialCoefficients.Free;
|
||||
|
||||
end.
|
||||
|
||||
|
|
Loading…
Reference in New Issue