What are some interesting / practical applications for arrays with three or more sizes?

When using arrays, I usually use only one or two sizes of the array - very rarely three or more. I'm just curious what interesting / practical applications are for arrays with three or more dimensions? Have you ever used an array with four or more sizes? I had a college professor using a six-dimensional array in a program that he demonstrated in class ... has there ever been more of this?

+5
source share
2 answers

In scientific programming, this can be quite common. We just start calling these tensors of large dimensional arrays. Scalars are 0-dimensional tensors, vectors are one-dimensional tensors, matrices are two-dimensional tensors, and after that we call them d-dimensional tensors (d = 3,4,5,6). Point products are called abbreviations for indexes.

Where are they used? I use them in some of my physical simulations. For example, one method of modeling electrons on a lattice (a regular array of sites) uses a tensor with a different set of indices for each connection to a neighboring site. In a two-dimensional square lattice (count the places in the center of each space on a chessboard), this means that each tensor has four indexes: one for each neighboring site, so it is a four-dimensional tensor.

+4

3 3D-, 3D- .

+1

All Articles