Well, it is possible that the problem you originally posed
is unnecessary:  Why is there a unit axis (the 1 in 2 1 6 6)
that you need to eliminate?  How did it come about,
and is the "combine the first 2 axes" thing a "workaround"?  
Is it like the ,/,/D=: ,<2 1 6 6$blah , where if you can eliminate the , 
adjacent to the < becomes ,/D=: <2 1 6 6$blah?  Perhaps 
D=: <2 6 6$blah ?

It is a rare application that uses 4-dimensional arrays
(2 1 6 6$blah). In a box, no less.



----- Original Message -----
From: Brian Schott <[email protected]>
Date: Monday, February 8, 2010 22:43
Subject: Re: [Jprogramming] combine the first 2 axes when 2nd shape is 1
To: Programming forum <[email protected]>

> Roger,
> 
> Yes, in trying to prove you wrong I discovered that you are not wrong,
> and the original array was of shape 1 2 1 6 6 as you and Ric observed.
> I'll try to eliminate that first dimension.
> 
> Thank you.
> 
> On Tue, Feb 9, 2010 at 1:21 AM, ROGER HUI <[email protected]> wrote:
> > Because you'd formed D by saying D=: ,<blah
> >
> > It's better to understand what happened before devising
> > a workaround.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to