Add typing generics#4131
Conversation
b5f116f to
37b3898
Compare
|
Looks good - have you considered directly mimicking the naming/setup of the C++ concepts? Perhaps they could also be put somewhere more general for use across the whole interface. https://github.com/FEniCS/dolfinx/blob/main/cpp/dolfinx/common/types.h#L26 |
1cde704 to
6d5be09
Compare
bcf403b to
f0a843a
Compare
AFAIK the python typing currently does not allow conditional type deductions, so we can not mimic any scalar/real type concepts. |
|
I think you're overcomplicating it a bit. My basic point is to add a |
36886a4 to
5944836
Compare
|
This should be merged when:
|
5944836 to
3229f98
Compare
3229f98 to
7ac5a21
Compare
406e171 to
893f1ad
Compare
Has been rebased and Real/Scalar concepts centralised |
893f1ad to
d55000f
Compare
d55000f to
a0d66b7
Compare
Add a comment about SuperLU_DIST type support.
Extends the approach of #4094 for multi export type wrappers to
VectorMatrixCSRSuperLUDistMatrixSuperLUDistSolverDirichletBCCoordinateElementFiniteElementFormConstantExpressionFunctionFunctionSpaceMeshGeometryCoordinateElementBoundingBoxTreePointOwnershipData