Learn R Programming

polyMatrix (version 0.2.5)

dim: The dimension of a polynomial matrix

Description

Retuns the value of the $dim element of the given polyMatrix object.

Usage

# S3 method for polyMatrix
dim(x)

Arguments

x

a polyMatrix class object

Value

A 2 element vector which contains the dimension parameters of the input polyMatrix.

Details

A method for polyMatrix objects. Does not check the validity of the $dim element.

Examples

Run this code
# NOT RUN {
dim(matrix(1:12,3,4)) # dim of a real matrix

A <- polyMgen.a()
class(A)# polyMarray
dim(A) # dim of a polyMatrix

B <- polyMconvert(A,"polyMdlist")
class(B)# polyMdlist
dim(B)

dim(polyMgen.a())
dim(polyMgen.b())
dim(polyMgen.c())
dim(polyMgen.d())

# clean up
# rm(A, B)
# }

Run the code above in your browser using DataLab