| MatrixFactorization-class {Matrix} | R Documentation |
Virtual Class "MatrixFactorization" of Matrix Factorizations
Description
MatrixFactorization is the virtual class of
factorizations of m \times n matrices A,
having the general form
P_{1} A P_{2} = A_{1} \cdots A_{p}
or (equivalently)
A = P_{1}' A_{1} \cdots A_{p} P_{2}'
where P_{1} and P_{2} are permutation matrices.
Factorizations requiring symmetric A have the constraint
P_{2} = P_{1}', and factorizations without row
or column pivoting have the constraints
P_{1} = I_{m} and P_{2} = I_{n},
where I_{m} and I_{n} are the
m \times m and n \times n 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
Diman integer vector of length 2 giving the dimensions of the factorized matrix.
Dimnamesa list of length 2 preserving the
dimnamesof the factorized matrix. Each element must beNULLor a character vector of length equal to the corresponding element ofDim.
Methods
determinantsignature(x = "MatrixFactorization", logarithm = "missing"): setslogarithm = TRUEand recalls the generic function.dimsignature(x = "MatrixFactorization"): returnsx@Dim.dimnamessignature(x = "MatrixFactorization"): returnsx@Dimnames.dimnames<-signature(x = "MatrixFactorization", value = "NULL"): returnsxwithx@Dimnamesset tolist(NULL, NULL).dimnames<-signature(x = "MatrixFactorization", value = "list"): returnsxwithx@Dimnamesset tovalue.lengthsignature(x = "MatrixFactorization"): returnsprod(x@Dim).showsignature(object = "MatrixFactorization"): prints the internal representation of the factorization usingstr.solvesignature(a = "MatrixFactorization", b = .): seesolve-methods.unnamesignature(obj = "MatrixFactorization"): returnsobjwithobj@Dimnamesset 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")