Closed mscroggs closed 10 months ago
Any relation to the just-opened issue #364?
Any relation to the just-opened issue #364?
Yes, we both found these while debugging issues in FEniCSx. Thought it worth still opening this in case the smaller example I found is useful. If not, feel free to close this
Fixed, thanks for the report.
Problem description
When wrapping a templated function with a
ndarray<T>
anduint32_t
inputs, it's wrongly using the wrapped version withT=double
when I pass in a complex-valued array.Minimal failing code is in this repo and included below
Reproducible example code
This code leads to the following test failing when (and only when)
index
isnp.uint32(1)
: