Class Scine::Utils::AutomaticDifferentiation::First1D

class First1D : public Scine::Utils::AutomaticDifferentiation::FirstBase<double, First1D>

Class representing values in one dimension and allowing for the automatic calculation of first derivatives.

Public Functions

First1D()

Constructor with no arguments given.

First1D(double v, double d)

Constructor with two arguments.

Parameters
  • v: value of the function.

  • d: derivative of the function.

double derivative() const

Add function name in the singular form to avoid ambiguities.