Sorry, the mailer made a hash of my msg.
+/"r has integrated rank
support but (+/%#)"r does not.
Therein lies an opportunity for an
improvement in the
implementation.
ts=: 6!:2 , 7!:[EMAIL PROTECTED]
x=: 5 5e5
[EMAIL PROTECTED] 0 NB. wide
ts '(+/%#)"1 x'
0.0777057 4.1961e6
ts '(+/"1
x)%{:$x'
0.0110925 1792
x=: 5e5 5 [EMAIL PROTECTED] 0 NB. tall
ts
'(+/%#)"1 x'
0.612025 4.1961e6
ts '(+/"1 x)%{:$x'0.033295 8.39014e6
x=: 1580 1600 [EMAIL PROTECTED] 0 NB. squarish
ts '(+/%#)"1 x'
0.0167924 34432
ts '(+/"1 x)%{:$x'
0.0112939 34304
----- Original Message -----
From: Roger Hui <[EMAIL PROTECTED]>
Date: Thursday, July 26, 2007 0:04
Subject: [Jprogramming] (+/%#)"r
To: Programming forum <[email protected]>
> +/"r has integrated rank support but (+/%#)"r does not.Therein
> lies an opportunity for an improvement in the implementation.
> ts=: 6!:2 , 7!:[EMAIL PROTECTED] x=: 5 5e5 [EMAIL PROTECTED] 0 NB. wide
> ts '(+/%#)"1
> x'0.0777057 4.1961e6 ts '(+/"1 x)%{:$x'0.0110925 1792
> x=: 5e5 5 [EMAIL PROTECTED] 0 NB. tall ts '(+/%#)"1 x'0.612025
> 4.1961e6 ts '(+/"1 x)%{:$x'0.033295 8.39014e6 x=: 1580
> 1600 [EMAIL PROTECTED] 0 NB. squarish ts '(+/%#)"1 x'0.0167924 34432 ts
> '(+/"1 x)%{:$x'0.0112939 34304
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm