static void deriv(const InputType& y, OutputType& x) { x = y; x.transform( [](double y) { return deriv(y); } ); }