Top "Multidimensional-array" questions

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

Difference between numpy.array shape (R, 1) and (R,)

In numpy, some of the operations return in shape (R, 1) but some return (R,). This will make matrix multiplication more …

python numpy matrix multidimensional-array
How to insert a new key value pair in array in php?

I've an array as follows named $test_package_data. For the reference I'm printing first two elements of it: Array ( [0] =&…

php arrays multidimensional-array associative-array
What are the differences between a multidimensional array and an array of arrays in C#?

What are the differences between multidimensional arrays double[,] and array-of-arrays double[][] in C#? If there is a difference, what is …

c# multidimensional-array jagged-arrays
How do you get the width and height of a multi-dimensional array?

I have an array defined: int [,] ary; // ... int nArea = ary.Length; // x*y or total area This is all well …

c# .net arrays multidimensional-array
Create two-dimensional arrays and access sub-arrays in Ruby

I wonder if there's a possibility to create a two dimensional array and to quickly access any horizontal or vertical …

ruby arrays multidimensional-array
ReDim Preserve to a Multi-Dimensional Array in Visual Basic 6

I'm using VB6 and I need to do a ReDim Preserve to a Multi-Dimensional Array: Dim n, m As Integer …

arrays multidimensional-array vb6 dynamic-arrays
Using numpy to build an array of all combinations of two arrays

I'm trying to run over the parameters space of a 6 parameter function to study it's numerical behavior before trying to …

python arrays multidimensional-array numpy
Arrays.fill with multidimensional array in Java

How can I fill a multidimensional array in Java without using a loop? I've tried: double[][] arr = new double[20][4]; Arrays.…

java arrays multidimensional-array
Calculate mean across dimension in a 2D array

I have an array a like this: a = [[40, 10], [50, 11]] I need to calculate the mean for each dimension separately, the result …

python arrays multidimensional-array numpy mean
How to "flatten" a multi-dimensional array to simple one in PHP?

It's probably beginner question but I'm going through documentation for longer time already and I can't find any solution. I …

php arrays multidimensional-array