SCM

SCM Repository

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

Diff of /pkg/R/denseMatrix.R

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

revision 1225, Mon Mar 13 14:06:17 2006 UTC revision 1226, Mon Mar 13 14:07:58 2006 UTC
# Line 2  Line 2 
2  ### These are "cheap" to program, but potentially far from efficient;  ### These are "cheap" to program, but potentially far from efficient;
3  ### Methods for specific subclasses will overwrite these:  ### Methods for specific subclasses will overwrite these:
4    
5  ## dense to sparse: as() will take the ``closest'' match  ## dense to sparse:
6  setAs("denseMatrix", "dsparseMatrix",  setAs("denseMatrix", "dsparseMatrix",
7        function(from) as(as(from, "dgeMatrix"), "dsparseMatrix"))  ## MM thought that  as() will take the ``closest'' match; but that fails!
8    ##      function(from) as(as(from, "dgeMatrix"), "dsparseMatrix"))
9  ## setAs("denseMatrix", "dgCMatrix",        function(from) as(as(from, "dgeMatrix"), "dgCMatrix"))
 ##       function(from) as(as(from, "dgeMatrix"), "dgCMatrix"))  
 ## setAs("denseMatrix", "dgTMatrix",  
 ##       function(from) as(as(from, "dgeMatrix"), "dgTMatrix"))  
10    
11  setAs("denseMatrix", "CsparseMatrix",  setAs("denseMatrix", "CsparseMatrix",
12        function(from) {        function(from) {

Legend:
Removed from v.1225  
changed lines
  Added in v.1226

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