On 4/2/07, Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
How to ravel frame of a given cell rank
without boxing?

 ,/ a
combines the two leading dimensions of a

 ,/^:n a
ravels the leading n+1 dimensions of a

Alternatively, you might use something like
 ravelN=: ,@] $~ ([: */ [EMAIL PROTECTED] }. [EMAIL PROTECTED]) , [EMAIL PROTECTED] 
{.&.:<: [EMAIL PROTECTED]
which ravels all but the last x dimensions of y

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to