04-08-2009 11:13 AM - edited 04-08-2009 11:13 AM
04-08-2009 11:51 AM - edited 04-08-2009 11:52 AM
How hard can it be to index out element(0,0) of a 2D array?
Easy(top): We simply reshape the 2D array to a 1D array with one element, convert it to a cluster with 9 elements (?!), and unbundle the first element.
It seems more scenic than just use "index array" (bottom). 😄

(spotted here)
04-08-2009 02:41 PM - edited 04-08-2009 02:42 PM
Just stumbled upon this cute way to build an array of strings... I really had to look twice ![]()

Found here...
04-09-2009 06:05 AM
Robert Cole wrote:I know we don't like sequences, but...
If you're going to use a sequence, then use a sequence.
I think this structure was used to reduce the amount of space used (it could have been done in one line).
Rob
Message Edited by Robert Cole on 04-08-2009 09:57 AM
That could looks like they really wanted the code I posted in my Nugget on control refs. Early version of me trying to make my config files less work to maintain looked something like that.
Ben
04-09-2009 09:42 AM - edited 04-09-2009 09:44 AM
04-09-2009 10:26 AM - edited 04-09-2009 10:27 AM
Complex way to extract columns from a 2D string array.
Note that the1D I32 array is converted to a cluster only to be convert back to 1D I32s.
04-09-2009 10:41 AM
VADave wrote:Note that the1D I32 array is converted to a cluster only to be convert back to 1D I32s.
This operation is actually more complex and not reversible. It's Rube Goldberg's way to reshape (pad, trim) the array to 16 elements in this particular case 😉 No matter what the input size is, the output will be size=16 (or whatever the array-to-cluster is configured). 😄
04-09-2009 11:39 AM
04-09-2009 02:10 PM
Wow! Dennis found an Express vi in the pallettes 🙂
-Ak2DM
04-09-2009 02:16 PM
AnalogKid2DigitalMan wrote:Wow! Dennis found an Express vi in the pallettes 🙂
-Ak2DM
Go gentle on him Ak2DM since he's new in these parts. We don't want to scare him off into answering another 15K question or something even more dangerous. I suggest we try talking nice to him and maybe he won't go running off looking for a new question to squash.
![]()
Just having fun,
Ben