https://github.com/cran/Matrix
Raw File
Tip revision: 098a4d94eb7dd56405dee9bb64062ea0a814389e authored by Martin Maechler on 10 September 2022, 21:02:54 UTC
version 1.5-0
Tip revision: 098a4d9
dsparseMatrix.R
## METHODS FOR CLASS: dsparseMatrix (virtual)
## sparse matrices with 'x' slot of type "double"
## ... but _excluding_ ddiMatrix (FIXME?)
## ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

## MJ: no longer needed ... now inherited from [CRT]sparseMatrix
if(FALSE) {
setMethod("symmpart", signature(x = "dsparseMatrix"),
          function(x) forceSymmetric(x + t(x)) / 2)
setMethod("skewpart", signature(x = "dsparseMatrix"),
          function(x) symmetrizeDimnames(x - t(x)) / 2)
} ## MJ

## MJ: no longer needed ... now inherited from Matrix
if(FALSE) {
setMethod("image", "dsparseMatrix",
	  function(x, ...) image(as(x, "dgTMatrix"), ...))
} ## MJ
back to top