Automatic type dispatching for python wrappers
Open
- Dominant language
- C++
- Stars
- 1.2k
- Forks
- 261
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 71
Description
In https://github.com/FEniCS/dolfinx/pull/3542 it was commented by @jhale that the selection of `cpp`-types of python wrappers can be unified and should not require a custom handling in each wrapper.
Given a `dtype` and a list of exported `dtype`'s we are able to determine the underlying cpp-type programmatically or throw (if not exported/supported).
Wrapper classes that share this:
- `FiniteElement`
- `CoordinateElement`
- `DirichletBC`
- `Form`
- `Constant`
- `Function`
- `Expression`
- `FunctionSpace`
- `BoundingBoxTree`
- `AdjacencyList`
- `MatrixCSR`
- `Vector`
- (probably some more that were missed)
Contributor guide
Assessment
This issue has not been assessed yet.