con_dims function

create consecutive dims from column and row vector