Representation for a Block Diagonal Sparse matrix
Objects of this class are usually created using the bdsmatrix
,
bdsI
or bdsBlock
functions.
The result is a symmetrix matrix whose upper left portion is block-diagonal,
with an optional border on the right and bottom that is dense.
The matrices were originally created to represent familial correlation
structures, which have a block for each family but no connection between
families.
blocksize
:An integer vector containing the sizes of the diagonal blocks
blocks
:A numeric vector containing the contents of the block portion. Only the lower triangle of each block is stored.
rmat
:An optional numeric matrix containing the dense portion
offdiag
:A single numeric element, default zero, which is the value for elements off the block-diagonal
Dim
:The dimension of the matrix, an integer vector of length 2
Dimnames
:The dimnames of the matrix, a list with 2 elements
signature(x = "matrix", y = "bdsmatrix")
: the result
will be an ordinary matrix
signature(x = "numeric", y = "bdsmatrix")
: the result
will be a vector
signature(x = "bdsmatrix", y = "matrix")
: the result
will be an ordinary matrix
signature(x = "bdsmatrix", y = "numeric")
: the result
will be a vector
signature(x = "bdsmatrix")
:
signature(x = "bdsmatrix")
:
signature(e1 = "bdsmatrix", e2 = "numeric")
:
signature(e1 = "bdsmatrix", e2 = "bdsmatrix")
:
signature(e1 = "bdsmatrix", e2 = "matrix")
:
signature(e1 = "numeric", e2 = "bdsmatrix")
:
signature(e1 = "matrix", e2 = "bdsmatrix")
:
signature(x = "bdsmatrix")
: if the subscripts are a
set of increasing integers, and the row and column subscripts are identical,
then the result is aslo a bdsmatrix. This is useful for example to create
the kinship matrix for all females from an overall kinship matrix. If the
subscripts do not match, then an ordinary matrix is created
signature(x = "bdsmatrix")
: ...
signature(x = "bdsmatrix")
: ...
signature(from = "bdsmatrix", to = "matrix")
: ...
signature(from = "bdsmatrix", to = "vector")
: ...
signature(x = "bdsmatrix")
: retrieve the diagonal of
the matrix
signature(x = "bdsmatrix")
: set the diagonal of the
matrix to a given value
signature(x = "bdsmatrix")
: dimension of the matrix
signature(x = "bdsmatrix")
: dimnames of the
matrix
signature(x = "bdsmatrix")
: set the dimnames of
the matrix
signature(x = "bdsmatrix")
: generalized cholesky
decomposition of the matrix
signature(x = "bdsmatrix")
: maximum of the matrix
signature(x = "bdsmatrix")
: minimum of the matrix
signature(x = "bdsmatrix")
:
signature(x = "bdsmatrix")
:
signature(object = "bdsmatrix")
: print out the matrix
signature(x = "bdsmatrix")
:
Terry Therneau
gchol