>
> 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
> >>>>
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
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
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-
&
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:
> -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
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) %*
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
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)
>
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
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(
11 matches
Mail list logo