jmazanec15 commented on issue #12342:
URL: https://github.com/apache/lucene/issues/12342#issuecomment-1650293826

   @benwtrent Sure, I think flip will reverse the dimensions as well as the 
order:
   ```
   np_flat_ds_sorted = np_flat_ds[indices]
   np_flat_ds_reverse = np.flip(np_flat_ds_sorted)
   np_flat_ds_reverse[-1][0]
   -0.18350956
   np_flat_ds_sorted[0][0]
   0.2331585
   np_flat_ds_sorted[0][-1]
   -0.18350956
   ```
   
   ```
   np_flat_ds_reverse = np.flip(np_flat_ds_sorted, axis=0)
   ```
   
   That being said, I thought I used your code for this - Im not sure how I got 
different numbers. I will retry reverse for both transform.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to