-
Hello everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @frettini No, we don't have such a trait currently. This will be improved in an upcoming version though: we'll have a For now you'd be stuck with either some hacky python thing like |
Beta Was this translation helpful? Give feedback.
-
Hi @njroussel , |
Beta Was this translation helpful? Give feedback.
Hi @frettini
No, we don't have such a trait currently. This will be improved in an upcoming version though: we'll have a
dr.replace_type_t
.For now you'd be stuck with either some hacky python thing like
mi.getattr("Scalar" + original_type.__name__)
or some extra C++ bindings. Depending on what you need, you might as well just make a big switch statement - there aren't that many possibilites.