Here - https://ru.stackoverflow.com/a/629964/228791 - the type of a three-dimensional matrix as vectors of vectors of vectors is used in the answer ...
using vector3d = vector<vector<vector<int>>>; In fact, it is more or less understandable, but the question is this - after all, each vector, for example, in a two-dimensional matrix, can be made its own size? If we declare an array
double array[n][m]; then here at least in the cake hurt, but in each row will be the same number of columns. And with vectors, you can lengthen the vector, say ...
The question is - can you somehow make the means of the language itself so that the vector<vector<double>> matrix has fixed sizes? but at the same time its elements could be changed?
By fixed sizes, I mean that all the vectors inside always have the same size. Well, that is, I have such an NxM matrix, I could do, let's say, Nx2M , but so that I couldn’t even somehow change the size of 2M for some vectors, and 3 for others, so far I have only invented my own wrapper class write, but is it possible somehow without it?