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

Method secondOrderCentralDifference

src/function.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46std::vector<std::vector<double>> Function::secondOrderCentralDifference(const std::vector<double> &x) const
47{
48 auto denseX = vectorToDenseVector(x);
49
50 DenseMatrix ddx = secondOrderCentralDifference(denseX);
51
52 return denseMatrixToVectorVector(ddx);
53}
54
55DenseMatrix Function::evalJacobian(DenseVector x) const
56{

Callers

nothing calls this directly

Calls 3

vectorToDenseVectorFunction · 0.85
getNumVariablesFunction · 0.50

Tested by

no test coverage detected