Than you Elijah, that second example is exactly what I want!
> On 9 Mar 2022, at 05:59, Elijah Stone wrote:
>
> Something like this, perhaps?
>
> ]a=. i.5 5
> 0 1 2 3 4
> 5 6 7 8 9
> 10 11 12 13 14
> 15 16 17 18 19
> 20 21 22 23 24
> ]b=. 2 2 $ 100 200 300 400
> 100 200
> 300 400
>
Something like this, perhaps?
]a=. i.5 5
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
]b=. 2 2 $ 100 200 300 400
100 200
300 400
b (<1 2;0 1)} a
0 1 2 3 4
100 200 7 8 9
300 400 12 13 14
15 16 17 18 19
20 21 22 23 24
Note this requires you to s
3 5 7 9 (0 0;0 1;1 0;1 1)} i.5 5
On Wednesday, March 9, 2022, 12:47:32 a.m. EST, Richard Donovan
wrote:
Can I amend an array with a smaller array? For example amend a 5x5 array by a
2x2 array starting at location x,y within the larger array?
Thanks
Richard Donovan
-
Can I amend an array with a smaller array? For example amend a 5x5 array by a
2x2 array starting at location x,y within the larger array?
Thanks
Richard Donovan
--
For information about J forums see http://www.jsoftware.com/foru