-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Slice ModelArrays #735
Comments
Currently in progress on the branch slicer. |
maybe 106445222 assertions is a bit overkill. Could we reduce the size/dimensionality of this test case? nextsimdg/core/test/Slice_test.cpp Lines 137 to 149 in 5216f7b
|
Thanks for sharing this branch @timspainNERSC. This will be super helpful. I had a quick look and maybe I missed it. Is it possible to get the elements from a 1D slice back as a array/vector? possibly a |
😒 |
Next on the TODO list. I should write that i the issue 🤔 |
but also
😎 |
How numpy behaves with a range of positive, 0, negative and absent indices. The test array Step = 1 (or absent)
step = 0Causes an exception to be thrown. Step = -1
|step| > 1Larger step sizes behave as expected, stepping the defined number of values from the same start index. |
Both advection (#99) and the halo regions needed for MPI (#132) require moving around subsets of
ModelArray
data. A unified slicing class/library to provide a common interface would be a useful addition to the model.Slice
classSlice
[::2]
in Python).start
andend
iterators- [ ] Implement the standardrstart
andrend
iteratorsModelArray
ModelArray
.ModelArray
to another.ModelArray
to the entirety of anotherModelArray
to a slice of anotherThe text was updated successfully, but these errors were encountered: