How to make an mlx array containing every number from 0-100 and skipping every Nth number #1554
-
Hello, I have a numpy code that makes a 1D array containing numbers from 0-100 while skipping every N'th element. This array will later be used to filter out data from an mlx array (basically removing every N'th column from the mlx array while also keeping the 0 element). I can make the indices in numpy as shown below, convert to an mlx array then use them select columns from the second array. But I was wondering if there is a way to make the indices in mlx to begin with.
Thank you so much |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Haven't tested it but something like the following should work
|
Beta Was this translation helpful? Give feedback.
Haven't tested it but something like the following should work