Repository navigation
How to make an mlx array containing every number from 0-100 and skipping every Nth number #1554
Answered
by
angeloskath
kyrollosyanny
asked this question in
Q&A
|
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 |
Answered by
angeloskath
Nov 2, 2024
Replies: 1 comment 1 reply
|
Haven't tested it but something like the following should work |
1 reply
Answer selected by
kyrollosyanny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haven't tested it but something like the following should work