Skip to content
Prev 138123 / 398506 Next

an efficient pairwise matrix cell's comparison function

Does this do what you want?
[,1] [,2] [,3] [,4] [,5]
[1,]    1    1    1    2    1
[2,]    1    0    1    1    0
[3,]    0    0    1    0    2
[4,]    0    1    2    0    0
[5,]    1    2    1    2    2
[,1] [,2] [,3] [,4] [,5]
[1,]    1    6   11   16   21
[2,]    2    7   12   17   22
[3,]    3    8   13   18   23
[4,]    4    9   14   19   24
[5,]    5   10   15   20   25
[,1] [,2] [,3] [,4] [,5]
[1,]    1    6   11   16   21
[2,]    2    0   12   17    0
[3,]    0    0   13    0   23
[4,]    0    9   14    0    0
[5,]    5   10   15   20   25
On Sun, Mar 2, 2008 at 7:11 AM, Diogo Andr? Alagador
<mcnda839 at mncn.csic.es> wrote: