SCM

SCM Repository

[matrix] Diff of /pkg/R/Matrix.R
ViewVC logotype

Diff of /pkg/R/Matrix.R

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

revision 847, Thu Aug 11 06:44:09 2005 UTC revision 848, Thu Aug 11 07:41:59 2005 UTC
# Line 96  Line 96 
96    
97  setMethod("solve", signature(a = "Matrix", b = "numeric"),  setMethod("solve", signature(a = "Matrix", b = "numeric"),
98            function(a, b, ...) callGeneric(a, as.matrix(b)))            function(a, b, ...) callGeneric(a, as.matrix(b)))
99    
100    if(FALSE) ## The following can't work as long as cbind is function(..., *)
101    setMethod("cbind", signature(a = "Matrix", b = "Matrix"),
102              function(a, b, ...) {
103                  da <- Dim(a)
104                  db <- Dim(b)
105                  if(da[1] != db[1])
106                      stop("Matrices must have same number of rows for cbind()ing")
107              })

Legend:
Removed from v.847  
changed lines
  Added in v.848

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