On Mon, Feb 22, 2010 at 10:43 AM, Leigh J. Halliwell
<[email protected]> wrote:
> I don't know why my 'A mmult B' didn't work a first.  I've retried it, and
> gotten the 2x3x5x6 array.  I can see that J wants conformity of the
> last/first dimension.  I'm looking for something more general (actually a
> way of avoiding the Vec function for vectorizing matrices), but I'm glad to
> understand what J does -- it's a start.  Thanks.

I am not sure what kind of generality you are looking for.
Unless we know what you are trying to accomplish this
kind of thing could go in all sorts of directions.

For example:

   $ (i.2 3 4) +/ .* i.4 5 6
2 3 5 6
   $ (i.2 3 4) +/ .(+/ .*) i.4 5 6
3 5 6
   $ (i.2 3 4) +/ .(+/ .*"2) i.2 5 4 4
5 3 4

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

Reply via email to