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