Top "Multidimensional-array" questions

Multidimensional-arrays can be described as multi-dimensional tables.

How to make a flat list out of list of lists?

I wonder whether there is a shortcut to make a simple list out of list of lists in Python. I …

python list multidimensional-array flatten
How can I create a two dimensional array in JavaScript?

I have been reading online and some places say it isn't possible, some say it is and then give an …

javascript arrays multidimensional-array
Syntax for creating a two-dimensional array

Consider: int[][] multD = new int[5][]; multD[0] = new int[10]; Is this how you create a two-dimensional array with 5 rows and 10 columns? …

java multidimensional-array
How do I declare a 2d array in C++ using new?

How do i declare a 2d array using new? Like, for a "normal" array I would: int* ary = new int[…

c++ arrays multidimensional-array dynamic-allocation
How to Sort Multi-dimensional Array by Value?

How can I sort this array by the value of the "order" key? Even though the values are currently sequential, …

php arrays sorting multidimensional-array
How to initialize a two-dimensional array in Python?

I'm beginning python and I'm trying to use a two-dimensional list, that I initially fill up with the same variable …

python multidimensional-array
How do you extract a column from a multi-dimensional array?

Does anybody know how to extract a column from a multi-dimensional array in Python?

python arrays multidimensional-array extraction
Passing a 2D array to a C++ function

I have a function which I want to take, as a parameter, a 2D array of variable size. So far …

c++ arrays pointers multidimensional-array
Multidimensional Array [][] vs [,]

double[][] ServicePoint = new double[10][9]; // <-- gives an error (1) double[,] ServicePoint = new double[10,9]; // <-- ok (2) What's their difference? (1) yields …

c# arrays multidimensional-array
How to count the occurrence of certain item in an ndarray?

In Python, I have an ndarray y that is printed as array([0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1]) I'm trying to count how many 0s and …

python numpy multidimensional-array count