MatrixFactorization-class {Matrix} | R Documentation |
Virtual Class "MatrixFactorization" of Matrix Factorizations
Description
MatrixFactorization
is the virtual class of
factorizations of matrices
,
having the general form
or (equivalently)
where and
are permutation matrices.
Factorizations requiring symmetric
have the constraint
, and factorizations without row
or column pivoting have the constraints
and
,
where
and
are the
and
identity matrices.
CholeskyFactorization
, BunchKaufmanFactorization
,
SchurFactorization
, LU
, and QR
are the virtual
subclasses of MatrixFactorization
containing all Cholesky,
Bunch-Kaufman, Schur, LU, and QR factorizations, respectively.
Slots
Dim
an integer vector of length 2 giving the dimensions of the factorized matrix.
Dimnames
a list of length 2 preserving the
dimnames
of the factorized matrix. Each element must beNULL
or a character vector of length equal to the corresponding element ofDim
.
Methods
determinant
signature(x = "MatrixFactorization", logarithm = "missing")
: setslogarithm = TRUE
and recalls the generic function.dim
signature(x = "MatrixFactorization")
: returnsx@Dim
.dimnames
signature(x = "MatrixFactorization")
: returnsx@Dimnames
.dimnames<-
signature(x = "MatrixFactorization", value = "NULL")
: returnsx
withx@Dimnames
set tolist(NULL, NULL)
.dimnames<-
signature(x = "MatrixFactorization", value = "list")
: returnsx
withx@Dimnames
set tovalue
.length
signature(x = "MatrixFactorization")
: returnsprod(x@Dim)
.show
signature(object = "MatrixFactorization")
: prints the internal representation of the factorization usingstr
.solve
signature(a = "MatrixFactorization", b = .)
: seesolve-methods
.unname
signature(obj = "MatrixFactorization")
: returnsobj
withobj@Dimnames
set tolist(NULL, NULL)
.
See Also
Classes extending CholeskyFactorization
, namely
Cholesky
, pCholesky
,
and CHMfactor
.
Classes extending BunchKaufmanFactorization
, namely
BunchKaufman
and pBunchKaufman
.
Classes extending SchurFactorization
, namely
Schur
.
Classes extending LU
, namely
denseLU
and sparseLU
.
Classes extending QR
, namely sparseQR
.
Generic functions Cholesky
, BunchKaufman
,
Schur
, lu
, and qr
for
computing factorizations.
Generic functions expand1
and expand2
for constructing matrix factors from MatrixFactorization
objects.
Examples
showClass("MatrixFactorization")