SCM

SCM Repository

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

Diff of /pkg/R/dsparseMatrix.R

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

revision 1280, Tue May 23 08:01:44 2006 UTC revision 1315, Mon Jul 10 16:08:05 2006 UTC
# Line 13  Line 13 
13  setMethod("crossprod", signature(x = "ddenseMatrix", y = "dsparseMatrix"),  setMethod("crossprod", signature(x = "ddenseMatrix", y = "dsparseMatrix"),
14            function(x, y = NULL) callGeneric(as(x, "dgeMatrix"), y))            function(x, y = NULL) callGeneric(as(x, "dgeMatrix"), y))
15    
16    setMethod("diag", signature(x = "dsparseMatrix"),
17              function(x, nrow, ncol = n) diag(as(x, "dgCMatrix")))
18    
19  ## and coerce dsparse* to dgC*  ## and coerce dsparse* to dgC*
20  setMethod("%*%", signature(x = "dsparseMatrix", y = "dgeMatrix"),  setMethod("%*%", signature(x = "dsparseMatrix", y = "dgeMatrix"),
21            function(x, y) callGeneric(as(x, "dgCMatrix"), y))            function(x, y) callGeneric(as(x, "dgCMatrix"), y))

Legend:
Removed from v.1280  
changed lines
  Added in v.1315

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