As you imagine, arrays really depend on their practical use. If you use arrays for spatial relationships, then you can get an idea of it as a cube, but also lose the need to imagine more than three dimensions. If you really and really wanted to implement the fourth dimension of time, you can simply imagine your cube as the content changes over time.
Otherwise, you can track tightly related entries. Perhaps each of the first elements is a galaxy, the elements of the second level are star clusters, the elements of the third level are the solar systems, the elements of the fourth level are the planets, the elements of the fifth level are the continents ...
In this case, you can imagine that these are arrays in arrays. If you need a 4-dimensional array, then you can imagine a cube, but each subcube is actually a one-dimensional array.
If you need a 5-dimensional array, then you can imagine a cube, but each subcube is divided into your example of a “brick wall”.
6-dimensional - a cube, each cube of which is its own divisible cube.
It tends to fall apart after 6 measurements. Other than that, there is usually a more practical reason why you need so many measurements. For example, websites like eHarmony map them using regular geometry in 20+ -dimensional spaces. You have one dimension for “humor,” one for “good looks,” one for “love of shopping” ... Then you can take two people and apply the distance formula (the square of each of the size differences, add these differences, the square root ) and determine how compatible these two people are. So, if one person scored “5, 3, 9, 2, 8, 4, 7, 3, 1” on our 9-dimensional personality matrix, and another scored “9, 3, 7, 1, 8, 2, 8 , 4, 7 ", then your compatibility:
sqrt((5-9)^2+(3-3)^2+(9-7)^2+...)
This can be applied to endless measurements and still work. However, since these measurements are not space related, there is no need to visualize them as such. Instead, in this particular case, we can imagine it as a one-dimensional array with several integer values. How can we simplify this array, of course, consists in the fact that our multidimensional array contains only one "1", and all the rest are "0" (indicating the location of the person in this array).
Deviating from the eHarmony example, point - after a certain number of measurements, you usually have a practical goal for an array that lends itself to a perception method.