-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusion regarding mask types #77
Comments
Hi @arpit15 , Regarding the The same applies to the Please let me know if this answered you questions. |
I asked the difference in types because I am unable to perform operations between these types. For ex: I tried Please let me know the correct way to perform element-wise operations in enoki, if this is not the correct way. |
Currently Also, could you tell me why using |
Thanks! This issue is solved by using |
No specific reason, we might add it in the future. In this code dot(ds.d, ds.n) < 0.f && neq(ds.pdf, 0.f) both comparisons should return a |
I don't really care about using |
I see problems due to no implicit conversion from |
I see your problem now. There was indeed some missing bindings for the scalar mode causing the following issue: ek.neq(0.0, 0.0) # -> return Vector1m instead of bool This should be fixed now (486ddb0) In the other modes ( |
Thanks for resolving this error. I tripped over another bug. I don't know if I should make another issue for this. |
Another one, thanks! Just fixed in 1cc24d0 |
I wrote a simple test to try enoki. However, I am unable to perform simple comparison operations due to type differences. Documentation states that return type of
operator<
andneq
ismask_t<Array>
. However, types ofresult1
andresult2
variable in the following code are different.Output in scalar mode gives below. According to my understanding this is because the output of
dot
operation is converted topy::float
. Is there a way to perform comparison without explicitly casting tobool
in this case?Output in cuda mode gives below. The difference between these types is unclear to me. Can you kindly give more details?
The text was updated successfully, but these errors were encountered: