Learn R Programming

polyMatrix (version 0.3.1)

pMsub: A submatrix of a polynomial matrix

Description

Retains or delets the i-th rows and the j-th column, depending of the sign of these indices.

Usage

pMsub(pm, i, j)

Arguments

pm

a polynomial matrix

i

the number of rows to retain or delete

j

the number of columns to retain or delete

Value

A polynomial matrix which is a submatrix of the given matrix in ‘polyMdlist’ format.

Details

If the row or column number is NULL, that means all elements from the given columns or rows respectively. If j is not given, that means a symmetric submatrix.

See Also

pMdet, pMadj

Examples

Run this code
# NOT RUN {
A <- polyMgen.a(3,4,1:24,degree=1)
A
pMsub(A, 2, 3)
pMsub(A, 1,NULL)
pMsub(A, NULL, 3)
pMsub(A, 1:2, 2:4)
pMsub(A, -3, 2:5)
pMsub(A, 1:2)

# clean up
# rm(A)
# }

Run the code above in your browser using DataLab