-
Notifications
You must be signed in to change notification settings - Fork 59
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
replace_scalar()
should allow scalar value to be scalar type
#146
Comments
Regarding the signature of As far as why the scalar parameter to Note: Please note that a lot of documentation is still a |
That's ok @9prady9 , I understand :) Thanks for pointing that out. If I have the time spare I will contribute to documentation or examples in future. I'll raise the issue with upstream. One feature they seem to have natively is assignment, they can apply an index to an array and then apply arithmetic and only those values are updated in the Array. For Rust wrapper, when we use index methods it extracts that into a new array without an easy way to merge it back into the original. eg index 2nd and 4th columns from a 5 col array and multiply values. |
Out of curiousity is there a reason
replace_scalar()
restricts the scalar type to f64 and not allowing a user provided scalar type likeconstant_t()
does? Withconstant_t()
it's a little confusing why it asks for a DType and Scalar unless I've misunderstood how it works:Is there a reason for f64(thus limited to values of 2^53 accurately) that would prevent u64 being permitted? If not perhaps as a new method or when next breaking change update occurs, we could have something like:
The text was updated successfully, but these errors were encountered: