The question is really about representing a number i in the number system with bases s0,s1,s2, ... . For example, if you are looking for an atom y in an array x with shape 2 3 4, the main problem is converting the index i=.(,x)i.y to its representation in the number system with bases 2 3 4. For that conversion see:
http://www.jsoftware.com/help/dictionary/d402.htm http://www.jsoftware.com/jwiki/Essays/Odometer ----- Original Message ----- From: Tracy Harms <[EMAIL PROTECTED]> Date: Friday, May 4, 2007 4:59 pm Subject: [Jgeneral] FAQ entry for scalar look-up techniques? > Devon McCormick wrote: > > > However, the problem you're attempting to solve, > > looking up a scalar in a higher-dimensional array, > > comes up frequently. > > Indeed, Terrence and I both asked the same basic > quesiton within a week, and both of us struggled with > i. (index of) in particular. > > The answers that have been tossed about in the > subsequent discussion are definitely interesting. I > propose that a refined subset be distilled into a new > entry under the following wiki category: > > http://www.jsoftware.com/jwiki/Guides/Language_FAQ > > Unfortunately, I am not yet qualified to write such a page. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
