| 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 |
no test coverage detected