16 #ifndef dealii_auto_derivative_function_h 17 #define dealii_auto_derivative_function_h 20 #include <deal.II/base/exceptions.h> 21 #include <deal.II/base/function.h> 23 DEAL_II_NAMESPACE_OPEN
134 const double initial_time = 0.0);
168 const unsigned int component = 0)
const override;
192 const unsigned int component = 0)
const override;
209 std::vector<std::vector<
Tensor<1, dim>>> &gradients)
const override;
227 std::vector<Tensor<1, dim>>
ht;
236 DEAL_II_NAMESPACE_CLOSE
virtual void gradient_list(const std::vector< Point< dim >> &points, std::vector< Tensor< 1, dim >> &gradients, const unsigned int component=0) const override
const unsigned int n_components
static DifferenceFormula get_formula_of_order(const unsigned int ord)
std::vector< Tensor< 1, dim > > ht
DifferenceFormula formula
void set_formula(const DifferenceFormula formula=Euler)
virtual void vector_gradient_list(const std::vector< Point< dim >> &points, std::vector< std::vector< Tensor< 1, dim >>> &gradients) const override
virtual void vector_gradient(const Point< dim > &p, std::vector< Tensor< 1, dim >> &gradients) const override
virtual ~AutoDerivativeFunction() override=default
void set_h(const double h)
AutoDerivativeFunction(const double h, const unsigned int n_components=1, const double initial_time=0.0)
virtual Tensor< 1, dim > gradient(const Point< dim > &p, const unsigned int component=0) const override