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 ,:^:(-...@$) arr

Marshall

________________________________________
From: programming-boun...@jsoftware.com [programming-boun...@jsoftware.com] On 
Behalf Of Brian Schott [schott.br...@gmail.com]
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
<mlochb...@raleighcharterhs.org> 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

Reply via email to