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
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
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
3 matches
Mail list logo