I think the best solution here is to create a Vector base class and pass this type to both removeRowsBy and removeColsBy methods. Otherwise it's more intuitive to pass RowVector to removeRowsBy. Passing a ColVector is not technically wrong, but will confuse users.