1 write to _logFactorialCache
Microsoft.ML.Core (1)
Utilities\MathUtils.cs (1)
357
_logFactorialCache
= new List<double>(LogFactorialCacheSize);
7 references to _logFactorialCache
Microsoft.ML.Core (7)
Utilities\MathUtils.cs (7)
355
if (
_logFactorialCache
== null)
358
_logFactorialCache
.Add(0);
359
_logFactorialCache
.Add(0);
362
for (int i =
_logFactorialCache
.Count; i <= n; i++)
364
_logFactorialCache
.Add(
_logFactorialCache
[i - 1] + Math.Log(i));
367
return
_logFactorialCache
[n];