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

Function simple

dlib/test/optimization.cpp:117–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115// ----------------------------------------------------------------------------------------
116
117 double simple ( const matrix<double,2,1>& x)
118 {
119 ++total_count;
120 return 10*x(0)*x(0) + x(1)*x(1);
121 }
122
123 matrix<double,2,1> der_simple ( const matrix<double,2,1>& x)
124 {

Callers 1

test_simpleFunction · 0.85

Calls 1

xFunction · 0.85

Tested by

no test coverage detected