dsyMatrix-class {Matrix} | R Documentation |
The "dsyMatrix"
class is the class of symmetric, dense matrices
in non-packed storage and "dspMatrix"
is the class of symmetric
dense matrices in packed storage. Only the upper triangle or the
lower triangle is stored.
Objects can be created by calls of the form new("dsyMatrix", ...)
.
uplo
:"character"
. Must be
either "U", for upper triangular, and "L", for lower triangular.x
:"numeric"
. The numeric
values that constitute the matrix, stored in column-major order.Dim
,Dimnames
:"integer"
) and corresponding names (or NULL
), see the
Matrix-class
.rcond
:"numeric"
. A named
numeric vector of reciprocal condition numbers in either the
1-norm "O"
or the infinity norm "I"
.factors
:"list"
. A named
list of factorizations that have been computed for the matrix.
Class "dgeMatrix"
, directly.
Class "symmetricMatrix"
, directly.
Class "Matrix"
and others, by class "dgeMatrix"
.
signature(from = "dspMatrix", to = "dgeMatrix")
signature(from = "dsyMatrix", to = "dgeMatrix")
signature(from = "dspMatrix", to = "matrix")
signature(from = "dsyMatrix", to = "matrix")
signature(from = "dsyMatrix", to = "dspMatrix")
signature(from = "dspMatrix", to = "dsyMatrix")
signature(x = "dspMatrix", type = "character")
signature(x = "dsyMatrix", type = "character")
signature(x = "dspMatrix", type = "missing")
signature(x = "dsyMatrix", type = "missing")
signature(a = "dspMatrix", b = "missing")
signature(a = "dsyMatrix", b = "missing")
signature(a = "dspMatrix", b = "dgeMatrix")
signature(a = "dsyMatrix", b = "dgeMatrix")
signature(a = "dspMatrix", b = "matrix")
signature(a = "dsyMatrix", b = "matrix")
dgeMatrix-class
, Matrix-class
,
solve
, norm
, rcond
,
t
## Only upper triangular part matters (when uplo == "U" as per default) (sy2 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, NA,32,77))) (c2 <- chol(sy2)) all.equal(c2, c2. <- chol(as(sy2, "dpoMatrix")))# equal, but not same class str(c2) ## An example where chol() can't work (sy3 <- new("dsyMatrix", Dim = as.integer(c(2,2)), x = c(14, -1, 2, -7))) validObject(as(sy3, "dpoMatrix"), test=TRUE) # >> is not pos.def. try(chol(sy3)) ## Error: not pos.def