SCM

SCM Repository

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

Diff of /pkg/Matrix/R/ddenseMatrix.R

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

revision 1738, Tue Jan 23 17:17:15 2007 UTC revision 1747, Mon Jan 29 20:17:33 2007 UTC
# Line 12  Line 12 
12        })        })
13    
14  ## d(ouble) to l(ogical):  ## d(ouble) to l(ogical):
15  setAs("dgeMatrix", "lgeMatrix", d2l_Matrix)  setAs("dgeMatrix", "lgeMatrix", function(from) d2l_Matrix(from, "dgeMatrix"))
16  setAs("dtrMatrix", "ltrMatrix", d2l_Matrix)  setAs("dsyMatrix", "lsyMatrix", function(from) d2l_Matrix(from, "dsyMatrix"))
17  setAs("dtpMatrix", "ltpMatrix", d2l_Matrix)  setAs("dspMatrix", "lspMatrix", function(from) d2l_Matrix(from, "dspMatrix"))
18  setAs("dsyMatrix", "lsyMatrix", d2l_Matrix)  setAs("dtrMatrix", "ltrMatrix", function(from) d2l_Matrix(from, "dtrMatrix"))
19  setAs("dspMatrix", "lspMatrix", d2l_Matrix)  setAs("dtpMatrix", "ltpMatrix", function(from) d2l_Matrix(from, "dtpMatrix"))
20    
21  setAs("ddenseMatrix", "CsparseMatrix",  setAs("ddenseMatrix", "CsparseMatrix",
22        function(from) {        function(from) {
# Line 82  Line 82 
82            function(x, y = NULL) callGeneric(as(x, "dgeMatrix")))            function(x, y = NULL) callGeneric(as(x, "dgeMatrix")))
83    
84  setMethod("diag", signature(x = "ddenseMatrix"),  setMethod("diag", signature(x = "ddenseMatrix"),
85            function(x = 1, nrow, ncol = n) callGeneric(as(x, "dgeMatrix")))            function(x, nrow, ncol = n) callGeneric(as(x, "dgeMatrix")))
86    
87  ## These methods cause an infinite loop in pre-2.4.0  ## These methods cause an infinite loop in pre-2.4.0
88  ## setMethod("solve", signature(a = "ddenseMatrix", b = "missing"),  ## setMethod("solve", signature(a = "ddenseMatrix", b = "missing"),

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

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