MCPcopy Create free account
hub / github.com/bgrimstad/splinter / evalHessian

Method evalHessian

src/function.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30std::vector<std::vector<double>> Function::evalHessian(const std::vector<double> &x) const
31{
32 auto denseX = vectorToDenseVector(x);
33
34 return denseMatrixToVectorVector(secondOrderCentralDifference(denseX));
35}
36
37std::vector<double> Function::centralDifference(const std::vector<double> &x) const
38{

Callers

nothing calls this directly

Calls 4

vectorToDenseVectorFunction · 0.85
denseVectorToVectorFunction · 0.85

Tested by

no test coverage detected