Consider the following tables:
ival = 10^6;
Tab1 = Table[{x, y}, {x, 1, ival, 1}, {y, 1, 6, 1}];
Tab2 = Table[{x, y1}, {x, 1, ival, 1}, {y1, 7, 8, 1}];
The values of columns are chosen as a toy example, there is no similar pattern in the actual tables that I use.
These tables have itot
"blocks" with correspondingly 6 (Tab1) and 2 (Tab2) rows. I would like to join blocks from Tab1, Tab2 in one block, i.e. to produce the table TabTot with blocks containing 8 rows. The brute-force way is:
TabTot = Table[{Tab1[[i]][[1]], Tab1[[i]][[2]], Tab1[[i]][[3]],
Tab1[[i]][[4]], Tab1[[i]][[5]], Tab1[[i]][[6]], Tab2[[i]][[1]],
Tab2[[i]][[2]]}, {i, 1, Length[Tab1], 1}];
However, 1) it seems that this way is slower than it may be as it calls tables many times, 2) it requires tons of tedious repetitions of code, such as "Tab1[[i]][[1]]", which will be annoying in the case of many rows in blocks for instance.
Could you please tell me whether there is a more efficient way to join the tables?