Description
First off, very impressed with this crate so far. I'm a long-time numpy user and I appreciate the task you took on on behalf of the Rust ecosystem.
I only recently started using Rust, so I might just be trying to do the wrong thing here, but I'm curious why an ArrayView
can not be used on the LHS of a binary operation like +
, -
, etc. That seems like a natural use-case, since you need a read-only view of the data in the array but won't be modifying it.
In my case I'd like to compare an array of values to a particular query by broadcasting and then operate on the matching rows later–this means I can't consume the array in this operation*.
Is the appropriate thing to Zip
over the rows and compare them that way? I can see how to do that but it seemed verbose, so I thought I'd check. And if this is an oversight I can try to help implement a PR.
* a broadcasting comparison operator would be even better for this but the existence of #35 suggests that might be difficult.