SNEX isnan
-
How do I get a
isnanin SNEX?
Should I import a standard library? -
@ustk
I ended up just writing a helper for it.
I haven't experimented with external libs for Snex as I do stuff in the c++ directly so I'm not sure how that would be done. -
I would have to add a function to the Math library, but sounds reasonable. I can then also add a sanitize function that sets inf and nan to zero, which I‘m using alot in C++.
-
@Christoph-Hart Sounds good, I had to deal with a
nanin Hise script too, so a Math method would be nice
-
@Christoph-Hart Bump

-
@ustk I tried to implement
isnanandisinfmyself withinsnex_Math.h, it compiles but isn't recognised in SNEX... -
@ustk There you go.

I've also added a sanitize function which clears inf & nan values (and denormals) to zero. Available in both SNEX and HiseScript
-
@Christoph-Hart Youhou ! Merci beaucoup Chris !
-
@Christoph-Hart Strange I checked the commit and except the sanitise thing it's exactly what I tried, but not having the functions to work... Or maybe I used
std_instead of directstd -
@ustk Have you added them to the SNEX Math JIT object?
-
@Christoph-Hart Nah... Forgot that part !