tagged [multidimensional-array]

Fastest Array addressing

Fastest Array addressing I am running an image analysis code on an array storing information about the image. Unfortunately the code is very heavy and takes an average of 25s to run through a single f...

Multi-dimensional arrays in Bash

Multi-dimensional arrays in Bash I am planning a script to manage some pieces of my Linux systems and am at the point of deciding if I want to use [bash](/questions/tagged/bash) or [python](/questions...

Selecting specific rows and columns from NumPy array

Selecting specific rows and columns from NumPy array I've been going crazy trying to figure out what stupid thing I'm doing wrong here. I'm using NumPy, and I have specific row indices and specific co...

Initializing multidimensional arrays in c# (with other arrays)

Initializing multidimensional arrays in c# (with other arrays) In C#, it's possible to initialize a multidimensional array using constants like so: I personally think initializing an array with hard c...

Submitting a multidimensional array via POST with php

Submitting a multidimensional array via POST with php I have a php form that has a known number of columns (ex. top diameter, bottom diameter, fabric, colour, quantity), but has an unknown number of r...

How to use a variable of one method in another method?

How to use a variable of one method in another method? I want to know how can I use the variable `a[i][j]` in the method `Scores()` to use it in the methods `MD()` and `sumD()` in the following code: ...

20 Dec at 00:57

Matrix multiplication using arrays

Matrix multiplication using arrays I'm trying to make a simple matrix multiplication method using multidimensional arrays (`[2][2]`). I'm kinda new at this, and I just can't find what it is I'm doing ...

Axes from plt.subplots() is a "numpy.ndarray" object and has no attribute "plot"

Axes from plt.subplots() is a "numpy.ndarray" object and has no attribute "plot" > The information below may be superfluous if you are trying to understand the error message. Please start off by readi...

slow performance of multidimensional array initialiser

slow performance of multidimensional array initialiser I have some weird performance results that I cannot quite explain. It seems that this line is 4 times slower than this one ``` d = new double[4, ...

Excel VBA - How to Redim a 2D array?

Excel VBA - How to Redim a 2D array? In Excel via Visual Basic, I am iterating through a CSV file of invoices that is loaded into Excel. The invoices are in a determinable pattern by client. I am read...

How to insert a new key value pair in array in php?

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] => Array ( ...