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 1237, Thu Mar 30 15:23:47 2006 UTC revision 1238, Thu Mar 30 19:56:09 2006 UTC
# Line 1  Line 1 
1  #### Symmetric Sparse Matrices in compressed column-oriented format  #### Symmetric Sparse Matrices in compressed column-oriented format
2    
3  ### contains = "dgCMatrix"  setAs("dgCMatrix", "dsCMatrix",
4          function(from) {
5              if(isSymmetric(from))
6                  ## FIXME: should be able to *not* need Tsparse route
7                  as(as(as(from, "dgTMatrix"), "dsTMatrix"), "dsCMatrix")
8              else stop("not a symmetric matrix")})
9    
10  setAs("dsCMatrix", "dsTMatrix",  setAs("dsCMatrix", "dsTMatrix",
11        function(from) ## Cholmod:        function(from) ## Cholmod:

Legend:
Removed from v.1237  
changed lines
  Added in v.1238

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