SCM

SCM Repository

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

Diff of /pkg/Matrix/R/lgTMatrix.R

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

revision 2944, Thu Dec 19 13:50:47 2013 UTC revision 2945, Thu Dec 19 13:52:00 2013 UTC
# Line 39  Line 39 
39            ## cannot copy factors, but can we use them?            ## cannot copy factors, but can we use them?
40            Dim = from@Dim, Dimnames= from@Dimnames))            Dim = from@Dim, Dimnames= from@Dimnames))
41    
42    setAs("lgTMatrix", "triangularMatrix",
43          function(from) check.gT2tT(from, toClass = "ltTMatrix", do.n=FALSE))
44  setAs("lgTMatrix", "ltTMatrix",  setAs("lgTMatrix", "ltTMatrix",
45        function(from) check.gT2tT(from, cl = "lgTMatrix", toClass = "ltTMatrix",        function(from) check.gT2tT(from, toClass = "ltTMatrix", do.n=FALSE))
46                                   do.n = FALSE))  
47    setAs("lgTMatrix", "symmetricMatrix",
48          function(from) check.gT2sT(from, toClass = "lsTMatrix", do.n=FALSE))
49    ## We favor coercion to super-classes, here, "symmetricMatrix"
50    ## setAs("lgTMatrix", "lsTMatrix",
51    ##       function(from) check.gT2sT(from, toClass = "lsTMatrix", do.n=FALSE))
52    
53    
54  if(FALSE) ## unneeded: use t.<TsparseMatrix>  if(FALSE) ## unneeded: use t.<TsparseMatrix>

Legend:
Removed from v.2944  
changed lines
  Added in v.2945

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