-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feature Make argument "b" of replace_scalar type T #288
Comments
@BA8F0D39 I think I didn't refactor the scalar argument(when Array was refactored to be generic) to avoid an up-cast at library level from Instead, I feel like the caller doing Feel free to share if you think there is better work around for this problem. |
It doesn't seem to insert the values into the array correctly for u64
A |
@BA8F0D39 I was able to reproduce the issue. Shall update here once I have more info on the root cause. |
Found the problem, the You can use the below workaround until we handle this use case appropriately in upstream project. let cnst = constant(18446744073709551614_u64, A_dims);
arrayfire::replace(&mut A, &boolarr, &cnst); Sorry about this inconvenience and thank you for reporting it! I shall post another update once I have fix in upstream available. |
Description
pub fn replace_scalar(a: &mut Array, cond: &Array, b: f64)
Shouldn't type of input "b" == T and not f64?
The text was updated successfully, but these errors were encountered: