Dear J-ers,
Am I supposed to see zeroes when I look at a sparse array, after amend?
]m =: 1 0 0 (1 1;2 2;3 3) } $. 4 4$0
1 1 | 1
2 2 | 0
3 3 | 0
They're gone when I convert to 'normal' and back:
0$.m
0 0 0 0
0 1 0 0
0 0 0 0
0 0 0 0
$.0$.m
1 1 | 1
(and they kill my quadtree verb:
qt m
|domain error: lr
| (-h){.(-h=.2%~#y) {."1 y
qt $.0$.m
0 0 0 0 1 1 1
0 0 0 1 0 0 0
)
Thanks for any help,
Ben
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm