Top "Multidimensional-array" questions

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

Convert a 1D array to a 2D array in numpy

I want to convert a 1-dimensional array into a 2-dimensional array by specifying the number of columns in the 2D …

python arrays matrix numpy multidimensional-array
How to sort an array of objects with jquery or javascript

I have an array of objects: var array = [(id, name, value),(id, name, value)]; //and so on How do I …

javascript jquery sorting multidimensional-array
PHP add elements to multidimensional array with array_push

I have a multidimensional array $md_array and I want to add more elements to the sub-arrays recipe_type and …

php multidimensional-array array-push
Iterating over a 2 dimensional python list

I have created a 2 dimension array like: rows =3 columns= 2 mylist = [[0 for x in range(columns)] for x in range(rows)] …

python loops multidimensional-array
How to Flatten a Multidimensional Array?

Is it possible, in PHP, to flatten a (bi/multi)dimensional array without using recursion or references? I'm only interested …

php arrays multidimensional-array flatten
How can I declare a two dimensional string array?

string[][] Tablero = new string[3][3]; I need to have a 3x3 array arrangement to save information to. How do I declare …

c# arrays multidimensional-array jagged-arrays array-initialization
PHP: Get key from array?

I am sure that this is super easy and built-in function in PHP, but I have yet not seen it. …

php arrays multidimensional-array key
How to sum all column values in multi-dimensional array?

How can I add all the columnar values by associative key? Note that key sets are dynamic. Input array: Array ( [0] =&…

php arrays multidimensional-array sum
Multi-dimensional associative arrays in JavaScript

There is the following query results: (key1 and key2 could be any text) id key1 key2 value 1 fred apple 2 2 mary …

javascript multidimensional-array associative-array
How to pass 2D array (matrix) in a function in C?

I need to do this to persist operations on the matrix as well. Does that mean that it needs to …

c multidimensional-array parameter-passing