| Line 1... |
Line 1... |
| 1 |
### Define Methods that can be inherited for all subclasses
|
1 |
### Define Methods that can be inherited for all subclasses
|
| 2 |
|
2 |
|
| - |
|
3 |
## -- see also ./Matrix.R e.g., for a show() method
|
| - |
|
4 |
|
| 3 |
## These methods are the 'fallback' methods for all dense numeric
|
5 |
## These methods are the 'fallback' methods for all dense numeric
|
| 4 |
## matricess in that they simply coerce the ddenseMatrix to a
|
6 |
## matrices in that they simply coerce the ddenseMatrix to a
|
| 5 |
## dgeMatrix. Methods for special forms override these.
|
7 |
## dgeMatrix. Methods for special forms override these.
|
| 6 |
|
8 |
|
| 7 |
setMethod("norm", signature(x = "ddenseMatrix", type = "missing"),
|
9 |
setMethod("norm", signature(x = "ddenseMatrix", type = "missing"),
|
| 8 |
function(x, type, ...) callGeneric(as(x, "dgeMatrix")))
|
10 |
function(x, type, ...) callGeneric(as(x, "dgeMatrix")))
|
| 9 |
|
11 |
|
| 10 |
setMethod("norm", signature(x = "ddenseMatrix", type = "character"),
|
12 |
setMethod("norm", signature(x = "ddenseMatrix", type = "character"),
|
| Line 51... |
Line 53... |
| 51 |
function(x, vectors, ...) callGeneric(as(x, "dgeMatrix")))
|
53 |
function(x, vectors, ...) callGeneric(as(x, "dgeMatrix")))
|
| 52 |
|
54 |
|
| 53 |
setMethod("Schur", signature(x = "ddenseMatrix", vectors = "logical"),
|
55 |
setMethod("Schur", signature(x = "ddenseMatrix", vectors = "logical"),
|
| 54 |
function(x, vectors, ...) callGeneric(as(x, "dgeMatrix"), vectors))
|
56 |
function(x, vectors, ...) callGeneric(as(x, "dgeMatrix"), vectors))
|
| 55 |
|
57 |
|
| 56 |
|
58 |
|