Open amitjamadagni opened 9 years ago
Definitely required. There are, however, more functions like complex
. So the question is if/how we can support all of them in an elegant way?
@acroy could we have an issue for all the functions or we could just list them out here, there was a use case so I thought of this but if we could list all at one place we would get a more neater picture.
The "easy" way would be to use code generation to provide functions for float
, float16
, float32
, etc. But I have the feeling that this is not the best (and future proof) way to do that. Maybe we just need a bunch of convert
s. Anyways I think it would be good to look at other Array-like types and figure out how this is handled.
Currently we get an error doing this :
This further gives an error when we do something like this :
This PR aims to fix this.