[aplusdev] points of grid?
Alexander Skomorokhov
askom at obninsk.com
Thu Feb 7 18:34:54 EST 2002
John,
> How about:
>
> ! x , at 0 0 0 y
GREAT! Look and feel of _real_ A+! Thanks a lot.
I am happy to know from you that everything is possibe in _array oriented_
style.
I just have to read/learn much more on A+.
Your line "improved" my mood very well:-! Thanks again.
Regards,
Sasha.
> In the Reference Manual take a look at "Inner and Outer Products" at the
> end of the section entitled "Rank Deriving Dyadic y f at n x"
>
> http://www.aplusdev.org/APlusRefV2_11.html#HEADING229
>
> Thanks,
> John
>
>
> On Thu, 7 Feb 2002, Alexander Skomorokhov wrote:
>
> > Volodya,
> >
> > Nice to communicate to you via server in NYC:-)
> >
> > > 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
> >
> > Good. Thanks. I changed your code a bit:
> >
> > $mode ascii
> >
> > x grid y: >,(flip >(rho y)rho <x),each @1 y
> >
> > This way you have simple matrix of all grid points.
> >
> > Also, I tryed non-APL way as:
> >
> > z:=0 2 rho o
> > (i:=rho x) do (j:=rho y) do z:=z,x[i],y[j]
> >
> > Sorry for the above:-)
> >
> > Regards,
> > A.O. :-)
> > ^^^^
> >
> >
> > >
> > > 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