return new CostGradientTuple(cost, gradient);
}
};
DenseDoubleVector v = new DenseDoubleVector(new double[] { 0, 1 });
CostGradientTuple cost = inlineFunction.evaluateCost(v);
DoubleVector numericalGradient = MathUtils.numericalGradient(v,
inlineFunction);
assertSmallDiff(numericalGradient, cost.getGradient());
v = new DenseDoubleVector(new double[] { -15, 100 });