A function from a d-dimensional domain to an m-dimensional image.
Implementations of gsFunction must at the very least implement the evaluation function gsFunction::eval_into(). It is also recommended to specify the source and target dimensions by overriding gsFunction::domainDim() and gsFunction::targetDim().
The functions for the derivatives may either be overridden or left as the default implementations, which use finite differences.
Evaluation members
All evaluation functions take a matrix u as an argument which specifies where the function should be evaluated. This matrix should have d rows, and every column specifies one point of the domain at which the function should be evaluated.
Here is an overview over the different evaluation procedures available:
Name of procedure | Evaluate what |
---|---|
eval(u) | value |
deriv(u) | first derivative(s) |
deriv2(u) | second derivative(s) |
All evaluation functions also provide a version suffixed with _into
which takes a matrix reference as an additional output parameter into which the result will be stored.
-
Template Parameters
-
T arithmetic type