Learn R Programming

polyMatrix (version 0.3.1)

t.polyMatrix: Matrix transpose of a polyMatrix class object

Description

The method first convert the storage method of the given polyMatrix object to polyMdlist class interpretation, then flips the polyMatrix over its diagonal.

Usage

# S3 method for polyMatrix
t(x)

Arguments

x

polyMatrix class object

Value

A 'polyMdlist, polyMatrix' class object, the transposed version of the given x polynomial matrix.

See Also

The ‘t’ in the base package.

Examples

Run this code
# NOT RUN {
m <- matrix(1:12,3,4)
t(m) # the \code{base::t()} function

pa <- polyMgen.a()
pm <- t(pa)
dim(pm) # 3 x 2
class(pm) #  "polyMdlist" "polyMatrix"

# }

Run the code above in your browser using DataLab