[G+smo]gsFunction

来源:互联网 发布:淘宝嘉年华公告在哪看 编辑:程序博客网 时间:2024/05/31 19:35

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 procedureEvaluate whateval(u)valuederiv(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
Tarithmetic type
0 0
原创粉丝点击