Optimizer\DifferentiableFunction.cs (10)
219VectorUtils.AddMultInto(in x, Eps, in dir, ref newX);
222VectorUtils.AddMultInto(in x, -Eps, in dir, ref newX);
226float numDeriv = (rVal - lVal) / (2 * Eps);
266VectorUtils.AddMultInto(in x, Eps, in dir, ref newX);
269VectorUtils.AddMultInto(in x, -Eps, in dir, ref newX);
273float numDeriv = (rVal - lVal) / (2 * Eps);
305VectorUtils.AddMultInto(in x, Eps, in dir, ref newX);
308VectorUtils.AddMultInto(in x, -Eps, in dir, ref newX);
312float numDeriv = (rVal - lVal) / (2 * Eps);
338float scaledEps = Eps / normDir;