SCM

SCM Repository

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

Diff of /pkg/R/ddenseMatrix.R

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

revision 1747, Mon Jan 29 20:17:33 2007 UTC revision 1799, Sat Mar 24 14:54:00 2007 UTC
# Line 20  Line 20 
20    
21  setAs("ddenseMatrix", "CsparseMatrix",  setAs("ddenseMatrix", "CsparseMatrix",
22        function(from) {        function(from) {
23            if (class(from) != "dgeMatrix")            if (class(from) != "dgeMatrix") # don't lose symmetry/triangularity/...
24                from <- .Call(dup_mMatrix_as_dgeMatrix, from)                as_Csparse(from)
25            .Call(dense_to_Csparse, from)            else .Call(dense_to_Csparse, from)
26        })        })
27    
28  ## special case  ## special case

Legend:
Removed from v.1747  
changed lines
  Added in v.1799

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