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
1
vote
1 answer

MATLAB: Duplicate each element of a vector?

I'm new to MATLAB and this website as well. I tried searching for this question, but to no avail (so I apologize if this ends up being a questions which has already been asked here before). In class, we were assigned a problem with the following…
1
vote
1 answer

C++ returning 2d array using a class method

Hi I'm new to programming and I'm entering second semester, so please have patience with my question as it is not for an assignment I'm just trying to see how some things work. I have a program I made which I wanted to demonstrate how to return a 2D…
1
vote
1 answer

How can I find the position of an object in a two-dimensional array?

So to be specific i have a two-dimensional array filled with JLabels. If from another method i get one JLabel that we know for sure that exists in that array how can i get the coordinates of the label in the array. part of code is this(P.S The array…
Sir. Hedgehog
  • 1,260
  • 3
  • 17
  • 40
1
vote
1 answer

Using a two dimensional array in Jess

I've been trying to represent a certain scenario for a game I'm building in Jess and so far I have a certain fact which will tell all the elements from each scenario. Since this game scenario will be represented in text format (using just text…
Sasha Fonseca
  • 2,257
  • 23
  • 41
1
vote
4 answers

Passing two dimensional array into function in C++

I'm trying to pass a two-dimensional array to the numOfStudents function, but Visual Studio is giving me an error saying: no instance of overloaded "numOfStudents" matches the argument list I've been trying everything and I can't find a…
user1951345
  • 11
  • 1
  • 2
1
vote
1 answer

PHP How to add an array inside another array with the same key name rather than replacing the one that exists currently

I know my question is kind of confusing, and also similar to others. But it is a tad different in a few ways. Basically I have this multi dimensional array in PHP with like 6 "dimensions". I'm building, let's call it $array1, up from a whole bunch…
Michael King
  • 640
  • 1
  • 6
  • 18
1
vote
3 answers

Multiplying 1D Array in Python

If I have a 1D array in Python for example: a = (10,20,30,40,50) How can I multiply this by an integer for example 2 to produce: b = (20,40,60,80,100) I have tried: b = a*2 But it doesn't seem to do anything.
cia09mn
  • 23
  • 3
0
votes
4 answers

Two Dimensional Array in Javascript Object

I want to create an Object that contains one or more two dimensional arrays in Javascript. I tried it the following way (in this example I only try to add one two dimensional array): var XSIZE = 8; var YSIZE = 8; var obj = { field : new…
Timo Sperisen
  • 463
  • 7
  • 8
0
votes
0 answers

Render N-Dimensional Shapes

Assuming we want clarity over speed. What is the best way to go about rendering n-dimensional shapes like hypercubes. I've been playing for a few hours and am missing something. I usually use a standard approach for 3d to 2d but am stuck with 5d to…
Zevan
  • 10,097
  • 3
  • 31
  • 48
0
votes
0 answers

How can condition only the columns of the two-dimensional array in if statements?

No matter how hard I look, there is no way through Java, so I am inquiring directly. Please let me know if it's impossible or what to do if possible. please...
0
votes
1 answer

C - 2 arrays, check if one is a sub array and return index

i have a task to write a function that will get 2 arrays and their size: int contain(int big[], int size_b, int small[], int size_s) the program should check if the small array is a sub array of the big array, if true should return the Index…
0
votes
0 answers

How to find most relevant variables with PCA dimension reduction?

I'm new to python coding, and working on a project but stuck at coding part. I have one target variable and 23 relevant variables. My dataset is 11(simples)*23(descriptors) and one target dataset 11(simples)*1(target variable). How do I find the…
EricT
  • 1
  • 1
0
votes
1 answer

Select unique combination of values (attributes) based on user_id

I have a table that has user a user_id and a new record for each return reason for that user. As show here: | user_id | return_reason | |--------- |-------------- | | 1 | broken | | 2 | changed mind | | 2 |…
Anthony
  • 1
  • 1
0
votes
1 answer

how to find determinant

double Determinant(double *X, int N){ /*Solution*/ } int main(void) { double X[] = {3, 1, 2, 7, 9, 2, 4, 6, 9}; if (Determinant(X,3) == 164) { printf("✓"); } } how to find one…
Sofune
  • 3
  • 2
0
votes
2 answers

Check if item of list is in [x][0] of other list with comprehension

this one is driving me crazy. The first list contains filenames without extension. e.g.: afilenames = [file1, file2, file3] The second list contains filenames with extensions: bfiles = [[file1, .exe], [file2, .txt], [file4, ini]] I know would like…
ErAzOr
  • 57
  • 1
  • 6