>>  <<  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  Release

-. Sparse Arguments initial writing: 2001-04-05
last updated: 2001-04-05

The dyad -. now supports sparse arguments. For example:
   ] d=: ?. 15 2$4 
0 3
1 2
0 0
2 2
3 1
2 3
0 0
2 2
0 1
0 1
2 2
3 3
2 0
2 1
2 3
   s=: $. d

   (s -. #:i.4) -: d -. #:i.4
1
   s -. #: i.4
 0 1 | 3
 1 0 | 1
 1 1 | 2
 2 0 | 2
 2 1 | 2
 3 0 | 3
 3 1 | 1
 4 0 | 2
 4 1 | 3
 5 0 | 2
 5 1 | 2
 6 0 | 2
 6 1 | 2
 7 0 | 3
 7 1 | 3
 8 0 | 2
 9 0 | 2
 9 1 | 1
10 0 | 2
10 1 | 3
   d -. #: i.4
0 3
1 2
2 2
3 1
2 3
2 2
2 2
3 3
2 0
2 1
2 3

   j=: ?.100$2e9
   x=: ?.100$1e9
   s=: x j}1 $. 2e9 ; 0 ; 2-2
   $s
2000000000
   s -. 0,x

   $ s -. 0,x
0


>>  <<  Usr  Pri  JfC  LJ  Phr  Dic  Rel  Voc  !:  wd  Help  Release