Re: [R] Communative Matrix Multiplcation

2012-08-16 Thread Martin Maechler
> > From: Martin Maechler [maech...@stat.math.ethz.ch] > Sent: Thursday, August 16, 2012 3:42 AM > To: David Reiner > Cc: Doran, Harold; 'r-help@r-project.org' > Subject: Re: [R] Communative Matrix Multiplcation > >>>>

Re: [R] Communative Matrix Multiplcation

2012-08-16 Thread Doran, Harold
hang. I'll provide reproducible examples. From: Martin Maechler [maech...@stat.math.ethz.ch] Sent: Thursday, August 16, 2012 3:42 AM To: David Reiner Cc: Doran, Harold; 'r-help@r-project.org' Subject: Re: [R] Communative Matrix Multiplc

Re: [R] Communative Matrix Multiplcation

2012-08-16 Thread Martin Maechler
y, August 14, 2012 12:55 PM > To: Berend Hasselman Cc: 'r-help@r-project.org' Subject: > Re: [R] Communative Matrix Multiplcation > Thanks, Berend. I updated my R and got same result. I > reposted the old sessionInfo(), which was an older > version. Bu

Re: [R] Communative Matrix Multiplcation

2012-08-15 Thread David Reiner
sselman Cc: 'r-help@r-project.org' Subject: Re: [R] Communative Matrix Multiplcation Thanks, Berend. I updated my R and got same result. I reposted the old sessionInfo(), which was an older version. But, same code, same matrices, different result > -Original Message- &

Re: [R] Communative Matrix Multiplcation

2012-08-14 Thread Doran, Harold
n...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Nordlund, Dan (DSHS/RDA) > Sent: Tuesday, August 14, 2012 1:57 PM > To: 'r-help@r-project.org' > Subject: Re: [R] Communative Matrix Multiplcation > > > -Original Message- > > From:

Re: [R] Communative Matrix Multiplcation

2012-08-14 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Doran, Harold > Sent: Tuesday, August 14, 2012 10:27 AM > To: Doran, Harold; 'r-help@r-project.org' > Subject: Re: [R] Communative Matrix Multiplc

Re: [R] Communative Matrix Multiplcation

2012-08-14 Thread Doran, Harold
t; To: Doran, Harold > Cc: 'r-help@r-project.org' > Subject: Re: [R] Communative Matrix Multiplcation > > > On 14-08-2012, at 19:26, Doran, Harold wrote: > > > > > I'm not seeing why the following occurs: > > > >> T1 <- (A1 - A2) %*

Re: [R] Communative Matrix Multiplcation

2012-08-14 Thread Berend Hasselman
On 14-08-2012, at 19:26, Doran, Harold wrote: > > I'm not seeing why the following occurs: > >> T1 <- (A1 - A2) %*% D >> T2 <- (A1 %*% D) - (A2 %*% D) >> identical(T1, T2) > [1] FALSE > ... I ran this in a clean environment library(Matrix) A1 <- new("dsCMatrix" , i = c(0L, 1L, 2L, 3L

Re: [R] Communative Matrix Multiplcation

2012-08-14 Thread Doran, Harold
an, Harold > Sent: Tuesday, August 14, 2012 1:26 PM > To: r-help@r-project.org > Subject: [R] Communative Matrix Multiplcation > > Friends > > I'm not seeing why the following occurs: > > > T1 <- (A1 - A2) %*% D > > T2 <- (A1 %*% D) - (A2 %*% D) >

[R] Communative Matrix Multiplcation

2012-08-14 Thread Doran, Harold
Friends I'm not seeing why the following occurs: > T1 <- (A1 - A2) %*% D > T2 <- (A1 %*% D) - (A2 %*% D) > identical(T1, T2) [1] FALSE Harold > dput(A1) new("dsCMatrix" , i = c(0L, 1L, 2L, 3L, 0L, 1L, 4L, 2L, 3L, 5L) , p = c(0L, 1L, 2L, 3L, 4L, 7L, 10L) , Dim = c(6L, 6L) , Dimna

Re: [R] Communative Matrix Multiplcation

2012-08-14 Thread Doran, Harold
Meant to also add library(Matrix) for reproducing From: Doran, Harold Sent: Tuesday, August 14, 2012 1:26 PM To: r-help@r-project.org Subject: Communative Matrix Multiplcation Friends I'm not seeing why the following occurs: > T1 <- (A1 - A2) %*% D > T2 <- (A1 %*% D) - (A2 %*% D) > identical(