SCM

SCM Repository

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

Diff of /pkg/Matrix/R/dgCMatrix.R

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

revision 2627, Mon Dec 6 14:33:15 2010 UTC revision 2628, Sat Dec 11 16:56:51 2010 UTC
# Line 10  Line 10 
10  ## setAs("dgCMatrix", "dgeMatrix", ....  ## setAs("dgCMatrix", "dgeMatrix", ....
11  ## setAs("dgeMatrix", "dgCMatrix", ....  ## setAs("dgeMatrix", "dgCMatrix", ....
12    
 ## rather use Csparse* to lsparse* in ./lsparseMatrix.R ,  
 ## but this is for "back-compatibility" (have had tests for it..):  
   
13  setAs("dgCMatrix", "ngCMatrix",  setAs("dgCMatrix", "ngCMatrix",
14        function(from) .Call(Csparse_to_nz_pattern, from, FALSE))        function(from) .Call(Csparse_to_nz_pattern, from, FALSE))
15    
16    ## rather use Csparse* to lsparse* in ./lsparseMatrix.R ,
17    ## but this is for "back-compatibility" (have had tests for it..):
18  setAs("dgCMatrix", "lgCMatrix",  setAs("dgCMatrix", "lgCMatrix",
19        function(from) { ## FIXME use .Call() too!        function(from) { ## FIXME use .Call() too!
20            r <- new("lgCMatrix")            r <- new("lgCMatrix")

Legend:
Removed from v.2627  
changed lines
  Added in v.2628

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