[aplusdev] points of grid?
Vladimir N. Kutinsky
kutinskyv at obninsk.com
Thu Feb 7 16:14:15 EST 2002
Hello Sasha,
I tried to do it with common things of A+ and this is what I did:
x<-{transpose}((rho y),rho x)rho x
and then
>x,{each}@1y
I hope it will suit you okey.
Vladimir
Alexander Skomorokhov wrote:
> How to create all points of some grid. What I do in APL with
> x{jot}.,y
>
> If, for istance, x<-1 2 3 and y<-4 5 then I get nested 3x2 matrix
> of all pairs of coordinates x and y like
>
> |[1 4] [1 5]|
> |[2 4] [2 5]|
> |[3 4] [3 5]|
>
> Thanks,
> Sasha.
More information about the apluslist
mailing list