Closed jinz2014 closed 1 month ago
I also got the error:
unsupported operand type(s) for *: 'float64' and 'float64'
a = wp.float64(0.1) b = wp.float64(0.1) a * b
Are there math functions for double-precision floating-point operations ? Thanks.
Yes, please take a look at the function signatures here to see if there is a double-precision version: https://nvidia.github.io/warp/modules/functions.html
I also got the error:
unsupported operand type(s) for *: 'float64' and 'float64'
a = wp.float64(0.1) b = wp.float64(0.1) a * b
I assume you're trying to do this at the Python scope, outside of a @wp.func or @wp.kernel decorated function? We don't currently define operator overloads for fundamental types like wp.float64
. Try moving the code into the kernel scope. @christophercrouzet: Any thoughts here?
There are no function for double-precision operations in Scalar Math. Right ?
Yes, at the Python scope.
Hi @jinz2014, thanks for reporting this issue!
We've just merged the commit 4094d6a in the branch main
that addresses this, so it will be part of the next release!
Are there math functions for double-precision floating-point operations ? Thanks.