SCM

SCM Repository

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

Diff of /pkg/R/dsCMatrix.R

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

revision 1365, Thu Aug 10 18:52:55 2006 UTC revision 1366, Sat Aug 12 17:31:39 2006 UTC
# Line 7  Line 7 
7                as(as(as(from, "dgTMatrix"), "dsTMatrix"), "dsCMatrix")                as(as(as(from, "dgTMatrix"), "dsTMatrix"), "dsCMatrix")
8            else stop("not a symmetric matrix")})            else stop("not a symmetric matrix")})
9    
10    ## Specific conversions, should they be necessary.  Better to convert as
11    ## as(x, "TsparseMatrix") or as(x, "denseMatrix")
12  setAs("dsCMatrix", "dsTMatrix",  setAs("dsCMatrix", "dsTMatrix",
13        function(from) ## Cholmod:        function(from) .Call(Csparse_to_Tsparse, from, FALSE))
       .Call(Csparse_to_Tsparse, from))  
14    
15  setAs("dsCMatrix", "dgTMatrix", # needed for image()  setAs("dsCMatrix", "dgTMatrix", # needed for image()
16        function(from) ## pre-Cholmod:        function(from) ## pre-Cholmod:

Legend:
Removed from v.1365  
changed lines
  Added in v.1366

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