On Fri, Jul 1, 2022 at 9:33 PM Thomas McGuire <tmcguir...@gmail.com> wrote:
> I am wondering is there a way to duplicate a seed matrix and give it the form 
> I want without resorting to boxing.

Probably the most general approach to tiling doesn't use boxing at
all, but uses indexing.

For example:

   seed=: p:i.3 3
   target=: i.10 10
   (,seed){~($seed)#.($seed)|"1 ($target)#:i.$target
 2  3  5  2  3  5  2  3  5  2
 7 11 13  7 11 13  7 11 13  7
17 19 23 17 19 23 17 19 23 17
 2  3  5  2  3  5  2  3  5  2
 7 11 13  7 11 13  7 11 13  7
17 19 23 17 19 23 17 19 23 17
 2  3  5  2  3  5  2  3  5  2
 7 11 13  7 11 13  7 11 13  7
17 19 23 17 19 23 17 19 23 17
 2  3  5  2  3  5  2  3  5  2

> Also is there a way to unbox and have this retain its current structure?

I see that bill lam has already answered this...

I hope this helps,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to