Try

+/ @: (+/"1) 

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Terrence Brannon
> Sent: Tuesday, May 29, 2007 2:17 PM
> To: [email protected]
> Subject: [Jgeneral] Summing the sum of rows
> 
> I'm not sure why I can't get the sum of the row-sum here:
> 
> w
> 1 1 1 1 1
> 1 1 1 1 1
> 1 1 1 1 1
> 1 1 1 1 1
>    <"1 w
> ----------T---------T---------T---------┐
> │1 1 1 1 1│1 1 1 1 1│1 1 1 1 1│1 1 1 1 1│
> L---------+---------+---------+----------
>    +/"1 w
> 5 5 5 5
>    +/ @: +/"1 w
> 5 5 5 5
>    ( +/ @: +/"1 ) w
> 5 5 5 5
> 
> +/ ( +/"1 w )   NB. this works but why cant I get @: to work?
> 
> 
> 
> ----------------------------------------------------------------------
> 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