SCM

SCM Repository

[matrix] Diff of /pkg/man/pMatrix-class.Rd
ViewVC logotype

Diff of /pkg/man/pMatrix-class.Rd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 649, Tue Mar 15 00:59:38 2005 UTC revision 650, Tue Mar 15 01:53:58 2005 UTC
# Line 48  Line 48 
48  (pm1 <- as(as.integer(c(2,3,1)), "pMatrix"))  (pm1 <- as(as.integer(c(2,3,1)), "pMatrix"))
49  t(pm1)  t(pm1)
50  solve(pm1)  solve(pm1)
51    pm1 \%*\% as(t(pm1), "matrix")   # check that the transpose is the inverse
52  (mm <- round(array(rnorm(3 * 3), c(3, 3)), 2))  (mm <- round(array(rnorm(3 * 3), c(3, 3)), 2))
53  mm %*% pm1  mm \%*\% pm1
54  pm1 %*% mm  pm1 \%*\% mm
55    try(as(as.integer(c(3,3,1)), "pMatrix"))
56  }  }
57  \keyword{classes}  \keyword{classes}

Legend:
Removed from v.649  
changed lines
  Added in v.650

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge