Skip to contents

Retrieve the dimension and degrees of rational matrix objects. E.g. for a polynomial matrix \(x(z)\) (i.e. for a polm object), dim(x) returns the vector c(m,n,p), where m,n are the respective number of rows and columns of the matrix and p is the (polynomial) degree of the matrix. For a Laurent polynomial, there is an additional element in the vector c(m,n,p,min_deg) returned by dim(x) pertaining to the (possibly negative) minimal degree. For a rational matrix in RMFD form \(x(z)=d(z)c^{-1}(z)\) (i.e. for an rmfd object), dim(x) returns the vector c(m,n,p,q), where m,n are the respective number of rows and columns of the matrix and p,q are the (polynomial) degrees of the polynomial matrices \(c(z)\) and \(d(z)\) respectively.

Usage

# S3 method for polm
dim(x)

# S3 method for lpolm
dim(x)

# S3 method for lmfd
dim(x)

# S3 method for rmfd
dim(x)

# S3 method for stsp
dim(x)

# S3 method for pseries
dim(x)

# S3 method for zvalues
dim(x)

Arguments

x

Object of type polm, lmfd, rmfd, stsp, pseries, or zvalues.

Value

Returns a named vector of integers (m,n always refer to the number of rows and columns of the rational matrix)

c(m,n,p,min_deg

for Laurent polynomial matrices (i.e. for lpolm objects).

c(m,n,p)

for polynomial matrices (i.e. for polm objects).

c(m,n,p,q)

for left matrix fraction descriptions (i.e. for lmfd objects).

c(m,n,p,q)

for right matrix fraction descriptions (i.e. for rmfd objects).

c(m,n,s)

for state space representations (i.e. for stsp objects).

c(m,n,lag.max)

for power series expansions (i.e. for pseries objects).

c(m,n,n.f)

for frequency response functions (i.e. for zvalues objects).