Function to add (or remove) a leading unity matrix to (from) an array (being an array representation of ar- or ma-polynomial).
an input polynomium (an array).
indicator for adding or removing unity matrix: +1 = add leading unity matrix, -1 = remove leading matrix.
changed array (with leading unity matrix inserted or removed).
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.