I wrote code similar to the example the other day and thought to myself. "Jeff, This is Stupid! Why am I unbundeling the row and column to feed into index array?"
If only we had a new cluster of type "index" that contains 1-n I32 scalars we coud index arrays by row, column, page, book. ad nausuem. with a simple index cluster wire. For IDEAL functionality a -1 element would select none of that dimention and -2 would select ALL of that dimention to slice rows, columns etc...
It should be fairly easy to integrate with a RCM on the index terminal of array funtions as Create>>Index cluster. and BANG a constant cluster adapted to the current dimentionallity of the array is dropped on the BD. Right Click the index cluster to Add dimention or Remove dimention too. Array indexing made easy!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 3 kudos within 3 years after posting will be automatically declined.