Skip to content
Back to formatted view

Raw Message

Message-ID: <745304.45920.qm@web120107.mail.ne1.yahoo.com>
Date: 2011-04-27T11:29:49Z
From: Alaios
Subject: Odp:  fast way to compare two matrices
In-Reply-To: <OF2DB7BDFA.80DFC9F5-ONC125787F.003DDFE5-C125787F.003E1C1B@precheza.cz>

That was great :)
REgards


--- On Wed, 4/27/11, Petr PIKAL <petr.pikal at precheza.cz> wrote:

> From: Petr PIKAL <petr.pikal at precheza.cz>
> Subject: Odp: [R] fast way to compare two matrices
> To: "Alaios" <alaios at yahoo.com>
> Cc: R-help at r-project.org, r-help-bounces at r-project.org
> Date: Wednesday, April 27, 2011, 12:18 PM
> 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-bounces at r-project.org
> napsal dne 27.04.2011 13:04:37:
> 
> > Dear all,
> > I am trying to speed up some code and I would like to
> check fast that it 
> works
> > by comparing two different matrices.
> > 
> > What is the fastest way to do that in R?
> > 
> > Best Regards
> > Alex
> > 
> > ______________________________________________
> > R-help at r-project.org
> mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained,
> reproducible code.
> 
>