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

Binding a mutltiple parent hierarchy

I have a table where informantion about some branches and hierarchies are kept. The information are not in stored in a way that can be used in dimensional modelling, so after many transformations and extractation I end up with this: where n0 it's…
0
votes
0 answers

How to copy a string to a two-dimensional array of char

my problem is that when copy another string from a file into a two-dimensional array of char gets an error: "Expression: string subscript out of range" It needs help, not programmed much advancement so please be as easy as possible explanation and…
0
votes
1 answer

pass a dimentional array(2D) to a function VHDL

I declared a matrix and a signal in my TOP file like this: type scanImage is array (0 to 7,0 to 7) of std_logic_vector(2 downto 0); signal image_matrix : scanImage; Now, I want to send the above signal to a function which calculates number of…
axcelenator
  • 1,497
  • 3
  • 18
  • 42
0
votes
2 answers

view php 2nd array in table

i have a problem with my 2nd array to display it in the table.. can anyone help me out..
achimet
  • 75
  • 6
0
votes
2 answers

How to create a function to change a value in a 2D dynamic array

I've been tasked with creating a class for a two dimensional dynamic array and I am stuck at a part where I need to create a member function which I can call upon to change a specific position in the 2D array to a value of my choosing. class…
user3684741
  • 13
  • 1
  • 3
0
votes
2 answers

Array index out of bounds - converting 2d to 1d

I'm not really sure as to why I'm getting an Array Index Out Of Bounds Exception. To my understanding, my double array is of size 3, so the index goes from 0 - 2. In my isSolvable method I try to count the number of inversions within my double…
0
votes
2 answers

Surrogate Keys in a Data Warehouse

I understand the general concept of a surrogate key in a DWH environment. But there are two aspects I don't understand and couldn't find information about: Is it common practice that a surrogate key is unique in the whole DWH or unique in one…
user3364656
  • 279
  • 2
  • 4
  • 9
0
votes
2 answers

How can I declare a Two-dimensional arrray with an (int, char) pair value in java?

I´m reading how to make a transition table for a NFA. I´m using java and according to my book in order to make the transition table for my NFA I need a two-dimensional array move[s,a] I assume a state s will be an integer and a a symbol from the…
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74
0
votes
1 answer

Check and see if an element in a two-dimensional array is of a certain data type

I'm writing a method that checks to see if the text file being passed into the constructor of my instantiable class contains non-numeric data. Specifically, it matters if the data cannot be represented as a double. That is, chars are not okay, and…
rwo
  • 19
  • 3
0
votes
0 answers

Populating table causes unexpected results

I am totally stumped. I have been debugging this for hours. I am allocating a table of 100 UInt32s by 100. I am loading a table of values and writing them to the 2D array. For some bizarre reason when I get to row 67, column 0 the writes appear to…
0
votes
2 answers

php. 2-dimensional array convert to 1-dimensional

I have array named $result_for_json_all Array ( [0] => Array ( ) [1] => Array ( [0] => Array ( [CurrencyAbbreviation] => AUD [DateOfCurrencyRate] => 2012-12-11 …
Andris
  • 1,434
  • 1
  • 19
  • 34
0
votes
1 answer

Java method for recursive matrix multiply?

So basically, what I want to do is make a method that takes 2 matrices as arguments, and multiplies them. This is a school task, and Im asked to solve this by using recursive "Divide and Conquer". This is my code so far: public class RecMult { …
mathkid91
  • 659
  • 2
  • 10
  • 27
0
votes
2 answers

Is it possible to assign an array to a two-dimensional array?

I am making an expense tracker program for an assessment project, but the thing is, the question sheet is too vague. One of the problems is that, I am not sure if I should just stick to a one-dimensional array or a multi-dimensional one. The whole…
0
votes
2 answers

What's the (short) type of `10 *~ (watt / second)`

Quick question: Using dimensional GHC infers the type of testRate = 10 *~ (watt / second) to be: testRate :: Numeric.Units.Dimensional.Quantity (Numeric.Units.Dimensional.Dim (numtype-1.0.1:Numeric.NumType.Pos …
fho
  • 6,787
  • 26
  • 71
0
votes
1 answer

Trying to read data file into a 2D Array and print to screen

I'm trying to read data from a file and load into a two dimensional array and then print it to the screen. but i keep receiving error code Exception in thread "main" java.util.NoSuchElementException at…