Not bad. I didn't know about _&{. before.
As a side note,
,:^:(2...@$)
forces arrays of any rank to rank 2. Dyadization is the obvious
2 ,:^:(-...@$) arrMarshall ________________________________________ From: [email protected] [[email protected]] On Behalf Of Brian Schott [[email protected]] Sent: Monday, September 20, 2010 6:05 PM To: Programming forum Subject: Re: [Jprogramming] Orthogonal projection to row space of matrix How about this. _ _&{. :: ,: On Mon, Sep 20, 2010 at 5:00 PM, Marshall Lochbaum <[email protected]> wrote: > The best I have is > (, $~ _2 {.!.1 $) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
