that you can do, to avoid actually having to store 4^7^2 entries? Is the matrix sparse .. in other words, are most of the entries zero (or some other known value)? Any matrix can be expressed as a list ...
... therefore also as a database table. Even though, mathematically speaking, the values are a matrix, it might not be physically possible to store it in the computer’s memory as one.