MCPcopy Create free account
hub / github.com/davisking/dlib / der_rosen

Function der_rosen

dlib/test/optimization.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 matrix<double,2,1> der_rosen ( const matrix<double,2,1>& x)
89 {
90 ++total_count;
91 matrix<double,2,1> res;
92 res(0) = -400*x(0)*(x(1)-x(0)*x(0)) - 2*(1-x(0));
93 res(1) = 200*(x(1)-x(0)*x(0));
94 return res;
95 }
96
97// ----------------------------------------------------------------------------------------
98

Callers 2

optimization_testFunction · 0.85
test_bound_solver_rosenFunction · 0.85

Calls 1

xFunction · 0.85

Tested by

no test coverage detected