Top "Multidimensional-array" questions

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

How do I do a deep copy of a 2d array in Java?

I just got bit by using .clone() on my 2d boolean array, thinking that this was a deep copy. How …

java arrays multidimensional-array copy deep-copy
PHP tree structure for categories and sub categories without looping a query

I'm trying to create a list of categories with any number of sub categories, where sub categories can also has …

php arrays recursion tree multidimensional-array
Understanding NumPy's einsum

I'm struggling to understand exactly how einsum works. I've looked at the documentation and a few examples, but it's not …

python arrays numpy multidimensional-array numpy-einsum
Convert array of single-element arrays to one a dimensional array

I have this kind of an array: Array ( [0] => Array ( [0] => 88868 ) [1] => Array ( [0] => 88867 ) [2] => Array ( [0] => 88869 ) [3] => Array ( [0] => 88870 ) ) …

php arrays multidimensional-array flatten array-column
How do I search for a number in a 2d array sorted left to right and top to bottom?

I was recently given this interview question and I'm curious what a good solution to it would be. Say I'm …

algorithm search multidimensional-array
Turning multidimensional array into one-dimensional array

I've been banging my head on this one for a while now. I have this multidimensional array: Array ( [0] => Array ( [0] =&…

php arrays multidimensional-array
Ruby: How to concatenate array of arrays into one

I have an array of arrays in Ruby on Rails (3.1) where all the internal arrays are of different size. Is …

ruby arrays multidimensional-array concatenation
PHP best way to MD5 multi-dimensional array?

What is the best way to generate an MD5 (or any other hash) of a multi-dimensional array? I could easily …

php arrays multidimensional-array hash md5
How to allocate a 2D array of pointers in C++

I'm trying to make a pointer point to a 2D array of pointers. What is the syntax and how would …

c++ pointers allocation multidimensional-array
Mapping a NumPy array in place

Is it possible to map a NumPy array in place? If yes, how? Given a_values - 2D array - …

python arrays multidimensional-array mapping numpy