# SCM Repository

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

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

revision 2346, Thu Mar 12 10:40:52 2009 UTC revision 2380, Mon May 25 09:45:37 2009 UTC
# Line 75  Line 75
75  ## setMethod("t", signature(x = "ddenseMatrix"),  ## setMethod("t", signature(x = "ddenseMatrix"),
76  ##        function(x) callGeneric(as(x, "dgeMatrix")))  ##        function(x) callGeneric(as(x, "dgeMatrix")))
77
setMethod("tcrossprod", signature(x = "ddenseMatrix", y = "missing"),
function(x, y = NULL) tcrossprod(as(x, "dgeMatrix")))

setMethod("crossprod", signature(x = "ddenseMatrix", y = "missing"),
function(x, y = NULL) crossprod(as(x, "dgeMatrix")))

78  setMethod("diag", signature(x = "ddenseMatrix"),  setMethod("diag", signature(x = "ddenseMatrix"),
79            function(x, nrow, ncol) diag(as(x, "dgeMatrix")))            function(x, nrow, ncol) diag(as(x, "dgeMatrix")))
80
# Line 90  Line 84
84  setMethod("solve", signature(a = "ddenseMatrix", b = "ANY"),  setMethod("solve", signature(a = "ddenseMatrix", b = "ANY"),
85            function(a, b, ...) solve(as(a, "dgeMatrix"), b))            function(a, b, ...) solve(as(a, "dgeMatrix"), b))
86
## General method for dense matrix multiplication in case specific methods
## have not been defined.
setMethod("%*%", signature(x = "ddenseMatrix", y = "ddenseMatrix"),
function(x, y) .Call(dgeMatrix_matrix_mm,
.Call(dup_mMatrix_as_dgeMatrix, x), y, FALSE),
valueClass = "dgeMatrix")

87  setMethod("lu", signature(x = "ddenseMatrix"),  setMethod("lu", signature(x = "ddenseMatrix"),
88            function(x, ...) lu(as(x, "dgeMatrix")))            function(x, ...) lu(as(x, "dgeMatrix")))
89

Legend:
 Removed from v.2346 changed lines Added in v.2380

 root@r-forge.r-project.org ViewVC Help Powered by ViewVC 1.0.0
Thanks to: