Retains or delets the i
-th rows and the j
-th column,
depending of the sign of these indices.
pMsub(pm, i, j)
a polynomial matrix
the number of rows to retain or delete
the number of columns to retain or delete
A polynomial matrix which is a submatrix of
the given matrix in ‘polyMdlist
’ format.
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.
# 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