Learn R Programming

polyMatrix (version 0.3.1)

dim.polyMatrix: The dimension of a polynomial matrix

Description

Retuns the value of the $dim element of the given polyMatrix object. Does not check the validity of the $dim element.

Usage

# S3 method for polyMatrix
dim(x)

Arguments

x

a `polyMatrix` class object

Value

A 2 element vector which contains the dimension parameters

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

# }

Run the code above in your browser using DataLab