Questions tagged [dimensional]

This tag is deprecated, use the correct tags instead: Questions related to multi[dimensional] [arrays] should use the tag [multidimensional-array], use [multidimensional] for the specific data structures, or [dimensional-modeling] for the mathematical analysis with data. Otherwise, use [dimension] where relevant.

This tag is deprecated! Please consider using the correct tags instead:

115 questions
32
votes
7 answers

C: Size of two dimensional array

I need some help counting the rows and columns of a two dimensional array. It seems like I can't count columns? #include int main() { char result[10][7] = { {'1','X','2','X','2','1','1'}, {'X','1','1','2','2','1','1'}, …
Wickerman
  • 367
  • 2
  • 4
  • 8
6
votes
8 answers

Convert One Dimensional Arrary to Two Dimensional in C++

I have a 49 space one dimensional array declared as int boardArray [49]; and I also have a two dimensional 7x7 array declared as int boardArrayTwo [7][7]' I am trying to use nested for loops to throw the one dimensional array into the two…
Cistoran
  • 1,587
  • 15
  • 36
  • 54
5
votes
2 answers

isosurface tracking in high dimensions

how to trace isosurface on a higher dimensional space efficiently
CRM
  • 1,349
  • 2
  • 12
  • 28
4
votes
2 answers

Python two dimensional list add value to element

I want to add a value to an element of a two dimensional list. Instead the value is added to all the elements of the column. Could anyone help? ROWS=3 COLUMNS=5 a=[[0] * (ROWS)] * (COLUMNS) for i in range(ROWS): print (a[i]) …
Geo_Python
  • 123
  • 2
  • 9
3
votes
4 answers

Common elements by columns in high-dimensional matrix

I have a data like original with much more columns. id <- c('A','B','C', 'D', 'E', 'F', 'G') month <- c('NA', 'D', 'H', 'I', 'A', 'B', 'NA') iso <- c('NA', 'NA', 'NA', 'A', 'B', 'C', 'NA') original <- data.frame(id, month, iso) I want to create a…
vog
  • 770
  • 5
  • 11
3
votes
2 answers

Javascript For loop in multidimensional javascript array

Can anyone give me a sample/example of JavaScript with a multidimensional array of inputs? Hope you could help because I'm still new to the JavaScript. Like this: var cubes = [[1, 2, 3],[4, 5, 6],[7, 8, 9]]; output : [1,4,7], [1,4,8], …
2
votes
2 answers

VB .NET: How to get reference to a row in a 2D-array

I have a function that returns a 1D-array like this: Public Function KeyConvert([args]) As Byte() and a 2 dimension array: Public KeyList(15, 5) As Byte Which can be seen as 15 rows,each row is a 5 element array, as we all already knew. Now I want…
king0deu
  • 21
  • 1
  • 2
2
votes
2 answers

Read CSV into Two Dimensional Array using First Line as Keys

I'm trying to Read a CSV file, where the format is: titleA,titleB,titleC data1A,data1B,data1C data2A,data2B,data3C The OUTPUT expected is: Array ( [0] => Array ( [titleA] => data1A [titleB] => data1B [titleC] => data1C ) [1] => Array ( [titleA]…
Federico
  • 21
  • 1
2
votes
1 answer

Check membership of list in two dimensional list

Can someone please tell me how to check membership of a list in a list. Such: if x not in y: using these values: y = [[7,1,0][8,8,3][2,4,7]] x = [7,1,0] # returns false x = [7,0,0] # returns true Thanks!
James Schinner
  • 1,549
  • 18
  • 28
2
votes
1 answer

How PHP handles 2 dimensional array HTML form input while using Laravel

I am using Laravel 5 to develop an HTML form which takes a 2 dimensional array as input. The purpose is to store some contact persons and the input fields for each contact person can be appended or removed by JQuery dynamically. I would like to…
2
votes
1 answer

2D empty array ( String and Bool) in swift

I see some questions for multidimensional arrays and two dimensional arrays but none of them show how to correctly implement an empty array. I have a todo list where I have a checkbox in the cell. Currently I'm storing the todo item in an array and…
Victor --------
  • 512
  • 1
  • 11
  • 29
2
votes
2 answers

ImageViews set programmatically do not appear

I have a 2-dim. array of ImageViews. They are set to a RelativeLayout programmatically. But when I start the App, they simply don't appear. This is my code: private void setMap(ImageView[][] fields){ RelativeLayout relLay = (RelativeLayout)…
Garrarufa
  • 1,145
  • 1
  • 12
  • 29
2
votes
3 answers

Creating 2 dimensional list matrix

How do you create a list-based matrix of 1's with given row and column counts? For example, like: row=3,column=4 -> [[1,1,1,1],[1,1,1,1],[1,1,1,1]]
ProgrammerPotato
  • 505
  • 1
  • 4
  • 11
2
votes
0 answers

some doubts about arGetTransMatSub() function of artoolkit in the 3d registration step

I'm learning artoolkit codes, but encountered some difficulties, it has cost me more than two weeks, especially in the three dimensional registration part, I don't really know arGetTransMatSub () this function, especially the inside of the algorithm…
jonnyS
  • 21
  • 1
1
vote
3 answers

Out of bounds exception in double dimensional array

Trying to find the sum of all even numbers and product of all odd numbers in a double dimensional array. Why am I getting the following out of bounds exception error ? Exception java. lang. Array Index Out Of Bounds Exception While running the code…
John Doe
  • 29
  • 4
1
2 3 4 5 6 7 8