Comma Slash 
Author Message
 Comma Slash

The J and K solutions to the recent "relation challenge"
problem make use of the monad ,/ (comma slash).  This is
a neat little function that collapses the leading two
dimensions of an array.  That is, if $x is n,r,c then
$,/x is (n*r),c.

,/ is computed in J in linear time.  A more naive
implementation can take time of order n^2, by explicitly
doing the n-1 catenations.  Whichever implementation is
used can be detected by timing on arguments with n=1000.

Wed, 03 Mar 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. compiler directives for comma's and slashes.

2. getting fields NOT comma delimited with commas inside

3. FS is a comma, but comma in data!

4. Comma dot (1,000.00) to dot comma (1.000,00)

5. APL/! (APL slash bang)

6. APL slash bang (Repost)

7. APL slash bang (Repost)

8. APL slash bang

9. shell variables with slashes

10. just want to add 2 little slashes...

11. slash / backslash

12. Rexx for OS2 with PARSE ARG and forward slashes


Powered by phpBB® Forum Software