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
0
votes
1 answer

two dimensional array and nested looping

I am trying to get this to print out the sales of 12 months for three years using a two dimensional array and nested looping. I am confused. Could someone please show me what I am doing wrong with my code using these methods. I do not want an…
AEGIS
  • 162
  • 1
  • 3
  • 17
0
votes
2 answers

(C) Function with bidimensional array

so I'm asked to make the following function: int **multiplyM(int MA[][], int MB[][], int n, int m) Which will multiply two matrices. The first one (MA) with dimensions n, n, and the second one (MB) with dimensions n, m. I have everything done with…
0
votes
1 answer

Dimensional and cube developme data models

I have created a dimensional model which is similar in structure to the financial reporting design in the AdventureworksDW environment, where the value of each account is held as a single value column in the fact table and the dimensions give the…
0
votes
1 answer

java two dimensional array sorting

Write a program that prompts the user to enter a nxn matrix of double values and displays a new matrix which has the columns of the initial matrix sorted. You may use any sorting algorithm to solve the problem; please specify the name of the used…
user2484149
  • 31
  • 1
  • 2
  • 5
0
votes
1 answer

Problems with outputting two dimensional arrays...?

This is the beginnings of a program that organizes students and their grades from four different classes. Eventually I'll be adding averages and what-not. At the moment however I have a problem with outputting the grades in the 'studentListField' --…
Que
  • 11
  • 5
0
votes
1 answer

Finding elements efficiently in an array

In the game i'm making I need to constantly find objects from a list and then check if it's coordinates are adjacent, there is hundreds of these objects and only 4 of them can be right, is there a better way to do this? The list is at…
Ryan Ramsden
  • 21
  • 1
  • 3
0
votes
1 answer

PCA for Face Recognition

Let x1 be a vector(gray) of image1, x2 be a vector(gray) of image2, etc xn be a vector(gray) of imagen. Say, all the image size is represented by r rows and c columns (r*c) so, X = [x1, x2, x3, .... xn]. As many literature suggest that, to reduce…
user1245222
0
votes
1 answer

How to assign a particular row of two dimensional array passed as an argument of the function to one-dimensional vector in c++

This is what I do, but I get segmentation fault when I debug (Step Into -> v.assign() is the problem. void vertex::sort_all_neighbours(int i, int **array, int size_array){ v.reserve(size_array); v.assign(&array[i][0],…
0
votes
3 answers

Two dimensional arrayList of ArrayList

I have a problem with a multiple ArrayList of waypoints. I have one ship. A ship has waypoints. public static ArrayList _waypoints = new ArrayList<>(); To add a new waypoint I use Screen._waypoints.add( new…
Oyeme
  • 11,088
  • 4
  • 42
  • 65
0
votes
3 answers

PHP explode multidimensional array

I am using file_get_contents() to import a text file. In the text file, the format goes as below (example): 3434,83,8732722 834,93,4983293 9438,43933,34983 and so forth... basically it follows the pattern: integer, comma to split it, second integer,…
Bren
  • 605
  • 4
  • 15
0
votes
0 answers

Creating a 1D Vector and Assigning Values by Reference C++

I'm a novice coder, just a few months into learning C++. This is my second question on Stack Overflow, and I really hope that the answers will benefit me and others. I started working on this program because I wanted to create a vector engine…
bazola
  • 270
  • 5
  • 16
0
votes
3 answers

Javascript: How to output array in array with for loop

I´m trying to output the array fields of an array with ist in an Array (More dimensional array). It seems .length does not work in the second array. Thanks for help! cheers, toni Test
toni
  • 443
  • 5
  • 14
-1
votes
1 answer

How to delete value from a multiple value to the sublist?

I want to remove Ben "True" data. How will I remove the true data? customer_data = [["Ainsley", "Small", True], ["Ben", "Large", False], ["Chani", "Medium", True], ["Depak", "Medium", False]] customer_data[2][2] =…
Angelo
  • 1
  • 1
-1
votes
1 answer

Check if sums of i-th row and i-th column are same in 2d array

I need to check if sums of i-th row and j-th column are same in 2d array and output i of the row and j of the column and sum. Also how can I make count it normally like [1][1],[1][2] etc. Thanks in advance. That's what I've got and sadly it's not…
ValetFrost
  • 19
  • 3
-1
votes
1 answer

Specific Updation in a multidimensional list

I have got the RGB value of an image using PIL module, but I don't know how to modify the third value i.e (the Blue value )B value particularly . Help me with this>>??
Akshey
  • 1