Please fill out these questions for all feature requests and bug reports. If you're requesting a feature, please let us know why this feature is important or useful, not just what it should do.
Thanks!
What browsers show this problem? Firefox - Snap! V6
Describes the steps to reproduce this issue.
load the APL library for transpose. create the script above, and the variables A, V1
What does Snap! currently do?
item is zero for both items in the list, i.e. say shows V1 = (0,1), but item is 0, 0
What should Snap! do instead?
item should reflect what is in the list.
If you use either of the other 'set V1...' lines you get correct behavior.
Also, if you replace 'for each' with 'for i = 1 to length V1' and manually set item to 'item i of V1', then it works
Is this bug a security concern? If so, please do not post security concerns directly to the forum. Please email us at contact@snap.berkeley.edu. Thank you!
Glad it was a quick fix. I suspected something along those lines. This leads me back the 'shimmering' discussion and the operations that flip the list representations. Will the new matrix/vector operations behave consistently in terms of that? The lowest level LApack routines are mostly vector operations, but as I get higher up the chain, transpose and inner product, in particular, become more important. Many routines also make use of slices/sub-matrices that require heavy use of item of and replace item of.