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

Function der_neg_rosen

dlib/test/optimization.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 matrix<double,2,1> der_neg_rosen ( const matrix<double,2,1>& x)
107 {
108 ++total_count;
109 matrix<double,2,1> res;
110 res(0) = -400*x(0)*(x(1)-x(0)*x(0)) - 2*(1-x(0));
111 res(1) = 200*(x(1)-x(0)*x(0));
112 return -res;
113 }
114
115// ----------------------------------------------------------------------------------------
116

Callers 1

Calls 1

xFunction · 0.85

Tested by

no test coverage detected