Graham,
since you supplied no example, I'm guessing at what you want. Maybe
something like this?
mat=. 10 10$0
]mat=. (9+ix{mat) ix}mat [ ix=. {(2+i.4);(3+i.6)
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 9 9 9 9 9 9 0
0 0 0 9 9 9 9 9 9 0
0 0 0 9 9 9 9 9 9 0
0 0 0 9 9 9 9 9 9 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
]mat=. (99+ix{mat) ix}mat [ ix=. {(1+i.7);(3+i.2)
0 0 0 0 0 0 0 0 0 0
0 0 0 99 99 0 0 0 0 0
0 0 0 108 108 9 9 9 9 0
0 0 0 108 108 9 9 9 9 0
0 0 0 108 108 9 9 9 9 0
0 0 0 108 108 9 9 9 9 0
0 0 0 99 99 0 0 0 0 0
0 0 0 99 99 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
Regards,
Devon
On 10/26/07, Graham Parkhouse <[EMAIL PROTECTED]> wrote:
>
> In APL by writing a loop containing
>
> matrix[i1;12]+ <- submatrix
>
> I can build a matrix from a number of contributing submatrices.
> What is a neat equivalent phrase in J?
>
> Thanks in anticipation!
>
> Graham Parkhouse
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm