Re: [R] Odp: fast way to compare two matrices

2011-04-27 Thread peter dalgaard
On Apr 27, 2011, at 13:29 , Alaios wrote: > That was great :) > REgards You may need to turn your sarcasm detector back on. Beware: > x <- matrix(rnorm(1e6), 1000,1000) > y <- solve(solve(x)) > identical(x,y) [1] FALSE > all.equal(x,y) [1] TRUE > summary(c(x-y)) Min.1st Qu. Median

Re: [R] Odp: fast way to compare two matrices

2011-04-27 Thread Alaios
That was great :) REgards --- On Wed, 4/27/11, Petr PIKAL wrote: > From: Petr PIKAL > Subject: Odp: [R] fast way to compare two matrices > To: "Alaios" > Cc: R-help@r-project.org, r-help-boun...@r-project.org > Date: Wednesday, April 27, 2011, 12:18 PM > Hi > > x <- matrix(rnorm(1e6), 1000,1

[R] Odp: fast way to compare two matrices

2011-04-27 Thread Petr PIKAL
Hi x <- matrix(rnorm(1e6), 1000,1000) y <- matrix(rnorm(1e6), 1000,1000) identical(x,y) [1] FALSE The response is almost instant. In case you are not satisfied with the unspecific answer be more specific with your question. Regards Petr r-help-boun...@r-project.org napsal dne 27.04.2011 13:0