Note: Strong overlap with [#191]
The functors are currently lacking in several respects. This issue should simplify the use of them.
As it has turned out, there are two main uses for functors. One is initial wave functions, where a grid is supplied as input and a one-dimensional wave function returned. The other is supplying a value or a tensor and returning another value/tensor e.g. for a time-dependent coefficient or a potential.
These use-cases are currently separated and should be joined. also, some common functors are missing. For that, the following changes should be done:
Diff:
Diff:
Diff:
Related
Tickets: #191