Since you know you want the function to applied with rank 1, you should
probably build it into the definition, e.g.

   timeToMove=: ((timeToRotate &: azimuth) >. (timeToAscend &:
elevation))"1
   left timeToMove right
0.15 0.45 1.15

On Tue, Nov 15, 2011 at 9:39 AM, Daniel Lyons <[email protected]>wrote:

>
> On Nov 15, 2011, at 5:27 AM, Kip Murray wrote:
>
> > I cannot duplicate your error.
>
> Trying it again this morning, I see I must have had a bad definition in my
> session. Loading from the file I get the same behavior as you and Raul.
> Sorry about that!
>
>
> >  From your definitions I get
> >
> >    left timeToMove right
> > 0.25 0.45
> >
> > You might notice
> >
> >    left
> > 0 1
> > 2 3
> > 4 5
> >    elevation left
> > 2 3
> >    elevation"1 left
> > 1 3 5
> >
> > Which do you want?
>
>
> Well, the idea is to treat each row analogously to a C struct. I think
> because they're all numbers I'm not having to box the values, but at any
> rate, I want a row-by-row application, so given the left and right I sent
> before, I want three numbers, as in elevation"1 there. Despite not having
> the error, the "1 rank version of these functions is still the one I want.
>
> Thanks again,
>
> —
> Daniel Lyons
>
> ----------------------------------------------------------------------
> 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

Reply via email to