[R] ^ operation much slower in R 1.7.1 than in R 1.7.0 ???
    Charles Annis, P.E. 
    Charles.Annis at statisticalengineering.com
       
    Mon Aug  4 19:22:02 CEST 2003
    
    
  
Nearly 5X slower on DELL Pentium 4, 2.26GHz, 1Gig, WinXP-Pro 
..........
R : Copyright 2003, The R Development Core Team
Version 1.7.0  (2003-04-16)
> a <- abs(matrix(rnorm(800*800)/2, ncol=800, nrow=800)) 
> system.time(b <- a^1000)[3]
[1] 0.68
> 
..........
R : Copyright 2003, The R Development Core Team
Version 1.7.1  (2003-06-16)
> a <- abs(matrix(rnorm(800*800)/2, ncol=800, nrow=800)) 
> system.time(b <- a^1000)[3]
[1] 3.29
>
Charles Annis, P.E.
Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFAX: 503-217-5849
http://www.StatisticalEngineering.com
    
    
More information about the R-help
mailing list