Is there an easy way to retrieve a non-contiguous subarray for a 2D array? For example, if I would like to retrieve the 1st, 4th, and 10th rows of my 2D matrix array into a separate array, is there a way to do that?
From what I’ve read in the documentation, you can obtain a subarray using subarray/between, but the subarray has to be contiguous. I could also use slice, but then I’d have to slice each of the rows individually. I could also filter, but filtering requires working with Booleans on the array values themselves, and not the indexes.
Is there an easier way that I’m not seeing? I noticed in the Scidb-py that there was functionality written to do this for 1D arrays, but it doesn’t seem to be extended to 2D arrays.