~ubuntu-branches/ubuntu/precise/r-cran-slam/precise

« back to all changes in this revision

Viewing changes to tests/matrix_dimnames.Rout.save

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2011-02-10 11:41:40 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20110210114140-juiktz2cqqhznpyn
Tags: 0.1-20-1
* New upstream release

* debian/control: Set (Build-)Depends: to current R version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
R version 2.12.0 Patched (2010-12-05 r53790)
 
3
Copyright (C) 2010 The R Foundation for Statistical Computing
 
4
ISBN 3-900051-07-0
 
5
Platform: i486-pc-linux-gnu (32-bit)
 
6
 
 
7
R is free software and comes with ABSOLUTELY NO WARRANTY.
 
8
You are welcome to redistribute it under certain conditions.
 
9
Type 'license()' or 'licence()' for distribution details.
 
10
 
 
11
R is a collaborative project with many contributors.
 
12
Type 'contributors()' for more information and
 
13
'citation()' on how to cite R or R packages in publications.
 
14
 
 
15
Type 'demo()' for some demos, 'help()' for on-line help, or
 
16
'help.start()' for an HTML browser interface to help.
 
17
Type 'q()' to quit R.
 
18
 
 
19
 
20
> library("slam")
 
21
 
22
> x <- simple_triplet_diag_matrix(1, nrow = 3L)
 
23
> rownames(x) <- letters[1:3]
 
24
 
25
> identical(as.matrix(cbind(x, x)),
 
26
+         cbind(as.matrix(x), as.matrix(x)))
 
27
[1] TRUE
 
28
> identical(as.matrix(rbind(t(x), t(x))),
 
29
+         rbind(as.matrix(t(x)), as.matrix(t(x))))
 
30
[1] TRUE
 
31
 
32
> identical(as.matrix(cbind(x, t(x))),
 
33
+         cbind(as.matrix(x), as.matrix(t(x))))
 
34
[1] TRUE
 
35
> identical(as.matrix(rbind(t(x), x)),
 
36
+         rbind(as.matrix(t(x)), as.matrix(x)))
 
37
[1] TRUE
 
38
 
39
> ###
 
40