What does double[,,] represent?

c#

Solution

You can think of this has having a set of tables stacked on top of each other. So you would need to specify a triplet to retrieve the item, which would specify which table, column, and row to get the value from.

Here's what a 3x3x3 array can be visualized as:

Problem

In answering a question about `double[,]`, I added a screenshot of LINQPad's output for that data structure: However, I got to wondering what a `double[,,]` looks like, and LINQPad won't visualize it for me. Additionally, I don't understand the format of the data which goes into it: ``` int[,,] foo = new int[,,] { { { 2, 3}, { 3, 4} }, { { 3, 4}, { 1, 5} } }; ``` Can anyone visualize this for me?

Original source

Related problems