Is there a formal way of algebraically expressing ( for example as a product of specially designed matrices) - duplicating specific row/column(s) or alternatively omitting rows/columns ?
for example I want to able to relate matrices A and B, where $$ A= \left[ \begin{array}{ccc} a&a&a&b&b\\ a&b&b&a&b \end{array} \right] $$ and $$ B=\left[ \begin{array}{ccc} a&b&b\\ b&a&b \end{array} \right] $$ where the only operation is omission or duplication of vectors.
Could be a simple operation but it's beyond me.