SCM

SCM Repository

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

Diff of /pkg/R/sparseMatrix.R

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

revision 1475, Fri Sep 1 22:35:59 2006 UTC revision 1476, Fri Sep 1 22:49:10 2006 UTC
# Line 59  Line 59 
59            }            }
60        })        })
61    
62  setAs("graph", "sparseMatrix",  setAs("graph", "CsparseMatrix",
63        function(from) as(as(from, "graphNEL"), "sparseMatrix"))        function(from) as(as(from, "graphNEL"), "sparseMatrix"))
64  }  }
65    
# Line 96  Line 96 
96  ##        }  ##        }
97        })        })
98    
 setAs("graphNEL", "sparseMatrix", function(from) as(from, "CsparseMatrix"))  
   
   
99  setAs("sparseMatrix", "graph", function(from) as(from, "graphNEL"))  setAs("sparseMatrix", "graph", function(from) as(from, "graphNEL"))
100  setAs("sparseMatrix", "graphNEL",  setAs("sparseMatrix", "graphNEL",
101        function(from) as(as(from, "TsparseMatrix"), "graphNEL"))        function(from) as(as(from, "TsparseMatrix"), "graphNEL"))

Legend:
Removed from v.1475  
changed lines
  Added in v.1476

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