* must still be the same, when
* values are accessed.
*/
- FunctionDerivative (const Function<dim>& f,
- const vector<Point<dim> >& direction,
- const double h = 1.e-6);
+ FunctionDerivative (const Function<dim> &f,
+ const std::vector<Point<dim> > &direction,
+ const double h = 1.e-6);
/**
* Choose the difference formula.
* increment vector for the
* formula.
*/
- vector<Point<dim> > incr;
+ typename std::vector<Point<dim> > incr;
};
#endif
#include <cmath>
template <int dim>
-FunctionDerivative<dim>::FunctionDerivative (const Function<dim>& f,
- const Point<dim>& dir,
- const double h)
+FunctionDerivative<dim>::FunctionDerivative (const Function<dim> &f,
+ const Point<dim> &dir,
+ const double h)
:
Function<dim> (f.n_components, f.get_time()),
- f(f),
- h(h),
- incr(1, h*dir)
+ f(f),
+ h(h),
+ incr(1, h*dir)
{
set_formula();
}
template <int dim>
FunctionDerivative<dim>::FunctionDerivative (const Function<dim>& f,
- const vector<Point<dim> >& dir,
+ const std::vector<Point<dim> >& dir,
const double h)
:
Function<dim> (f.n_components, f.get_time()),
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams