Re: [Jprogramming] indirect assignment and rank question

2012-12-08 Thread Raul Miller
An alternative phrase would be taking the diagonal. The run together mechanism relates to the distinction between inner and outer product. If you think of each array having an associated list of indices along each dimension, normally transpose uses an outer product combination of these. But when

Re: [Jprogramming] indirect assignment and rank question

2012-12-08 Thread Dan Bron
That does clear it up (especially the justification of this feature in terms of inner vs outer products). Thank you. -Dan Please excuse typos; composed on a handheld device. On Dec 8, 2012, at 7:55 AM, Raul Miller rauldmil...@gmail.com wrote: An alternative phrase would be taking the

[Jprogramming] indirect assignment and rank question

2012-12-07 Thread Brian Schott
I am working with photographic images which use RGB color. The array d is a single image and the array D is now 2 images but I want D to contain any number of images. And I want split out the R,G, and B part which I can do for d, but I am having difficulty with the analogous r, g, and b for D.

Re: [Jprogramming] indirect assignment and rank question

2012-12-07 Thread Marshall Lochbaum
0 1 2|: will do the job. I recommend reading the dictionary definition of |: through a few times. In particular, note that 0 1|: on a rank three array is the same as 2 0 1|: , and 0 1 2|: turns into 3 0 1 2|: on a rank four array. Marshall On Fri, Dec 07, 2012 at 03:02:49PM -0500, Brian Schott

Re: [Jprogramming] indirect assignment and rank question

2012-12-07 Thread Brian Schott
Perfect. Something was blocking me. On Fri, Dec 7, 2012 at 3:28 PM, Marshall Lochbaum mwlochb...@gmail.com wrote: 0 1 2|: will do the job. I recommend reading the dictionary definition of |: through a few times. In particular, note that 0 1|: on a rank three array is the same as 2 0 1|: ,

Re: [Jprogramming] indirect assignment and rank question

2012-12-07 Thread Dan Bron
Something I never wrapped my head around with |: is what exactly the DoJ means when it says axes are run together when the LHA is boxed. -Dan On Dec 7, 2012, at 3:28 PM, Marshall Lochbaum mwlochb...@gmail.com wrote: 0 1 2|: will do the job. I recommend reading the dictionary definition of

Re: [Jprogramming] indirect assignment and rank question

2012-12-07 Thread bob therriault
: programm...@jsoftware.com Subject: Re: [Jprogramming] indirect assignment and rank question Something I never wrapped my head around with |: is what exactly the DoJ means when it says axes are run together when the LHA is boxed. -Dan On Dec 7, 2012, at 3:28 PM, Marshall Lochbaum mwlochb