On 5/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
After reading this thread, it is very apparent to me I have a long....... long........ way to go.
yes, but as long as each step is rewarding and enjoyable, stick with it. each new step in J is ultra-powerful because you are operating and the center as opposed to the circumference. Why dont you join us in our IRC channel for some realtime help as well as encouragement.
It isn't only the lack of skills in using J, but also my not even understanding the terminology being used.
That's where a good intro text comes in. "Learning J" seems to have a methodical approach. "Easy J" gets you solving neat problems quickly. "J for C Programmers" was a tough read and got into heavy concepts and very few operators. The other two books get you into a lot of operators without getting you into heavy concepts so fast.
Oh well, at least it will cause the little gray cells to work harder.
just one new thing a day is my motto. But of course, after learning one thing, it's like heroine: next thing you know I have a whole new slew of things under my belt.
regards from the High Desert in California, USA ----- Original Message Follows ----- From: "Devon McCormick" <[EMAIL PROTECTED]> To: "General forum" <[email protected]> Subject: Re: [Jgeneral] (i. 2 3) i. 4 NB. you know what i mean... how do i get it to work?! Date: Fri, 4 May 2007 11:23:01 -0400 >Terence - > >the vocabulary page for "i.", while technically correct in >stipulating that the left rank of this verb is infinite, is >perhaps misleading in that it looks >up only items from the left argument so, in a sense, really >only treats the left argument as a vector. The examples on >the definition page should make this a little clearer. > >However, the problem you're attempting to solve, looking up >a scalar in a higher-dimensional array, comes up >frequently. I think of it this way: > (,i. 2 3) i. 4 >4 > 2 3 #: 4 NB. 4 as a base (2,3) number >1 1 NB. gives index into original array. > (<2 3 #: 4) { i. 2 3 >4 > > ixmd=: 4 : '($x)#:y i.~ ,x' NB. Index >multi-dimensionally > (i. 2 3) ixmd 4 >1 1 > >Regards, > >Devon > > >On 5/4/07, Terrence Brannon <[EMAIL PROTECTED]> wrote: >> >> Ok, I'm wondering how I might find the number 4 in a >> rank-2 array using dyadic i. Below are my failed naive >> attempts after reading the section in "Learning J" which >>went over Selecting. >> (i. 2 3) i. 4 >> |rank error >> | (i.2 3) i.4 >> (i. 2 3) i. (3 4 5) >> 1 >> (i. 2 3) i."1 4 >> |syntax error >> | (i.2 3)i."1 4 >> >----------------------------------------------------------- >> ----------- 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 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
