mc_factors {mcompanion} | R Documentation |
Factors of multi-companion matrices
Description
Gives the factors comprising the companion factorisation of a multi-companion matrix.
Usage
mc_factors(x, what = "mc")
Arguments
x |
a multi-companion matrix, an object of class |
what |
format of the result, see below. |
Details
If the factors are available in the object's pad in the requested format, they are returned without further processing. The factors may be available if they have been previously computed or if the matrix has been created from the factors.
If the factors are available, but not in the requested format, they are converted to it. Otherwise the factors are computed.
The factors are stored in the object's pad under the name "mC.factors"
when what == "mc"
, and in "mC.factorsmat" otherwise.
Value
If what == "mc"
the companion factors of x
as a list of
MultiCompanion
objects.
Otherwise a matrix with i-th row representing the i-th factor.
As a side effect, the factors are stored in the object's pad, see ‘Details’.
Author(s)
Georgi N. Boshnakov
References
Boshnakov GN (2002). “Multi-companion matrices.” Linear Algebra Appl., 354, 53–83. ISSN 0024-3795, doi:10.1016/S0024-3795(01)00475-X.
Examples
m <- mCompanion(matrix(1:8, nrow = 2))
mc_factors(m)