The R Project SVN R-packages

Rev

Rev 4868 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4868 Rev 4963
Line 1... Line 1...
1
 
1
 
2
R version 2.6.1 Patched (2007-12-06 r43609)
2
R version 2.6.2 Patched (2008-02-19 r44542)
3
Copyright (C) 2007 The R Foundation for Statistical Computing
3
Copyright (C) 2008 The R Foundation for Statistical Computing
4
ISBN 3-900051-07-0
4
ISBN 3-900051-07-0
5
 
5
 
6
R is free software and comes with ABSOLUTELY NO WARRANTY.
6
R is free software and comes with ABSOLUTELY NO WARRANTY.
7
You are welcome to redistribute it under certain conditions.
7
You are welcome to redistribute it under certain conditions.
8
Type 'license()' or 'licence()' for distribution details.
8
Type 'license()' or 'licence()' for distribution details.
Line 31... Line 31...
31
> source(system.file("test-tools.R", package = "Matrix"))# identical3() etc
31
> source(system.file("test-tools.R", package = "Matrix"))# identical3() etc
32
> 
32
> 
33
> ### --- Dense Matrices ---
33
> ### --- Dense Matrices ---
34
> 
34
> 
35
> m1 <- m2 <- m <- Matrix(1:12, 3,4)
35
> m1 <- m2 <- m <- Matrix(1:12, 3,4)
36
Warning message:
-
 
37
In Matrix(1:12, 3, 4) :
-
 
38
  integer matrices not yet implemented in 'Matrix'; using 'double' ones'
-
 
39
> dimnames(m2) <- list(LETTERS[1:3],
36
> dimnames(m2) <- list(LETTERS[1:3],
40
+                      letters[1:4])
37
+                      letters[1:4])
41
> dimnames(m1) <- list(NULL,letters[1:4])
38
> dimnames(m1) <- list(NULL,letters[1:4])
42
> 
39
> 
43
> stopifnot(identical(cBind ( m, 10*m) -> R,
40
> stopifnot(identical(cBind ( m, 10*m) -> R,
Line 315... Line 312...
315
[5,] . . 2 . 5 . . 2 . 1
312
[5,] . . 2 . 5 . . 2 . 1
316
[6,] 2 . 1 . . 6 . 1 . .
313
[6,] 2 . 1 . . 6 . 1 . .
317
> 
314
> 
318
> 
315
> 
319
> cat('Time elapsed: ', proc.time(),'\n') # for ``statistical reasons''
316
> cat('Time elapsed: ', proc.time(),'\n') # for ``statistical reasons''
320
Time elapsed:  2.658 0.104 3.128 0 0 
317
Time elapsed:  2.518 0.102 2.697 0 0 
321
> 
318
>