In reply to stupidkris1010:
It depends on what kind of efficiency you are looking for. If it RTL coding flexibility, then you can write
always_comb foreach(vec1[i,j]) swapped_vec1[j][i] = vec1[i][j];
In reply to stupidkris1010:
It depends on what kind of efficiency you are looking for. If it RTL coding flexibility, then you can write
always_comb foreach(vec1[i,j]) swapped_vec1[j][i] = vec1[i][j];