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