| 35 | } |
| 36 | |
| 37 | std::vector<double> Function::centralDifference(const std::vector<double> &x) const |
| 38 | { |
| 39 | auto denseX = vectorToDenseVector(x); |
| 40 | |
| 41 | auto dx = centralDifference(denseX); |
| 42 | |
| 43 | return denseVectorToVector(dx); |
| 44 | } |
| 45 | |
| 46 | std::vector<std::vector<double>> Function::secondOrderCentralDifference(const std::vector<double> &x) const |
| 47 | { |