Top "Multidimensional-array" questions

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

Java ArrayList of Arrays?

I want to create a mutli dimensional array without a fixed size. I need to be able to add items …

java arrays multidimensional-array arraylist
How do I use arrays in C++?

C++ inherited arrays from C where they are used virtually everywhere. C++ provides abstractions that are easier to use and …

c++ arrays pointers multidimensional-array c++-faq
Check if a specific value exists at a specific key in any subarray of a multidimensional array

I need to search a multidimensional array for a specific value in any of the indexed subarrays. In other words, …

php arrays search multidimensional-array array-column
Typescript - multidimensional array initialization

I'm playing with Typescript and I wonder, how to properly instantiate and declare multidimensional array. Here's my code: class Something { …

multidimensional-array typescript
Fastest way to zero out a 2d array in C?

I want to repeatedly zero a large 2d array in C. This is what I do at the moment: // Array …

c arrays multidimensional-array zero memset
Java Comparator class to sort arrays

Say, we have the following 2-dimensional array: int camels[][] = new int[n][2]; How should Java Comparator class be declared to …

java arrays multidimensional-array comparator
How do I 'foreach' through a two-dimensional array?

I've got a two-dimensional array, string[,] table = { { "aa", "aaa" }, { "bb", "bbb" } }; And I'd like to foreach through it like this, …

c# arrays multidimensional-array
len() of a numpy array in python

If I use len(np.array([[2,3,1,0], [2,3,1,0], [3,2,1,1]])), I get back 3. Why is there no argument for len() about which axis I …

python numpy multidimensional-array variable-length
Loop over array dimension in plpgsql

In plpgsql, I want to get the array contents one by one from a two dimension array. DECLARE m varchar[]; …

arrays postgresql multidimensional-array for-loop plpgsql
What is the difference between ndarray and array in numpy?

What is the difference between ndarray and array in Numpy? And where can I find the implementations in the numpy …

python arrays numpy multidimensional-array numpy-ndarray