Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [multidimensional-array]

Multidimensional-arrays can be described as multi-dimensional tables. Each index used in order to find a given element is called a dimension.

multidimensional-array
1 vote
2 answers
67 views

PHP recursive loop to filter out item and subitem based on key, value condition

I'm facing a multi dimenstions array filter problem. Let's say I had more than 3, or 50 levels of arrays inside an array, how can we filter them based on a key, value pair? for Example: $arr = [ ...
Hùng Thái's user avatar
2 votes
3 answers
59 views

Appending multiple dictionaries to specific key of a nested dictionary

I want to append different dictionaries having the key as the meal_name and having total_calories and total_protein as a tuple being the value of the dictionary without overwriting the original ...
Mohammad Abdullah's user avatar
-1 votes
0 answers
21 views

How to optimize fetching and caching grid data [closed]

I'm developing a hypothetical cloud spreadsheet application. The spreadsheet is your typical two dimensional sheet of cells. Whatever range of cells a user is viewing will be fetched and cached. The ...
George's user avatar
  • 2,978
1 vote
1 answer
49 views

how to use string to be key of array in php

I have array that need to call. $array['first_key']['second_key'] = 'value'; $keys = "['first_key']['second_key']"; I want to call it $array.$key that like $array['first_key']['second_key']. ...
Rahmat Hidayat's user avatar
2 votes
4 answers
90 views

Using Excel O365, How to use unique on two columns, sort, and copy over related data?

I have a 4 column, dynamic row array with names, process, order #, and dates. The array is dynamic and being collected using FILTER() function and grabbing the 4 columns I want from a table on a ...
Muffinman's user avatar
-3 votes
0 answers
55 views

Program ends abruptly iterating a 2-D vector using an iterator [closed]

I am updating a distance matrix which computes the distance between two nodes in an unweighted graph if the edge is present in the edges vector. Edges is a 2-D vector with each element of size 2 where ...
Bharath Devaraju's user avatar
0 votes
1 answer
50 views

Template parameters for c++ multidimentional array [duplicate]

Can someone explain how the following base template and specialization is instantiated to produce the correct result? I'm particularly unclear on how the <U[N]> template parameter is interpreted....
Rich Ramos's user avatar
0 votes
1 answer
57 views

Apply function with a vector as second argument

I have the following code, I wish you could explain me what the function apply with c(1,3) as second argument does. I completely understand the final result, I just don't understand how it works. The ...
fiodeno's user avatar
  • 97
0 votes
0 answers
29 views

Implementing Cell Overflow Handling in a 2D List with Python

This is a small part of a project where I'm having an issue. Suppose you are given the following: |-----|-----|-----|-----|-----| | -2 | 2 | -3 | 0 | 0 | |-----|-----|-----|-----|-----| | 0 ...
SSY's user avatar
  • 41
-1 votes
1 answer
29 views

Javascript exporting multi dimentioanl array results in some values to be empty

I am coding a practice react application in which I am exporting a primitive array with a separate file named data.js export const data = [ { type:"multiple", difficulty:"easy&...
Rivi's user avatar
  • 31
2 votes
1 answer
30 views

Printing 2D array in MIPS

I have been using a few other posts on here to try and figure out what I am doing wrong but I am stuck and could use some help. I am making a game that has an 8x8 "board" (2d array) similar ...
Sara Malos's user avatar
2 votes
2 answers
45 views

Dynamic dimensional array storing in Matlab

I have M many 2-D matrices of dimension (2 x n_1 ,2 x n_2 , 2 x n_3,..., 2 x n_N ). I can store them in a MATLAB cell-array of dim (2 x N x M) where N = {n_1 , n_2 , n_3,..., n_N} and n_1,n_2,n_3 are ...
zuko7's user avatar
  • 69
1 vote
1 answer
74 views

How do I effectively compute pairwise quantities in numpy?

I want to compute pairwise quantities, e.g. distances between two points. A simple example would be import numpy as np N = 9 x = np.linspace(0,1,N) y = np.abs(x - x[:,None]) # pairwise 1d eucdlidian ...
knods's user avatar
  • 23
3 votes
2 answers
62 views

Traverse over tree type structured data uing JavaScript

I have a data set having parent and nested children in it. The purpose of this data is to traverse over parent to -> child1 to-> Child1Child ..... -> child2 to -> child1 to -> child2 ...
vikas dhiman's user avatar
0 votes
0 answers
8 views

SemanticKITTI rotation troubles

The pose data provided with the SemanticKITTI (https://semantic-kitti.org/) LIDAR dataset is formatted unusually. For instance, they use a 'yzx' coordinate system instead of the standard 'xyz'. My ...
Tim Noel's user avatar

15 30 50 per page
1
2 3 4 5
2376