multidimensional

PostgreSQL multidimensional array search

Hi Guys, I am a newbie to Postgresql and was trying with it. I have created a simple table: CREATE table items_tags ( ut_id SERIAL Primary KEY, item_id integer, item_tags_weights text[] ); where: item_id - Item Id with these tags are associated item_tags_weights - Tags associa...

C# - What's are the available multi dimensional data structures that perform well?

I need to store multi-dimensional data consisting of numbers in a manner thats easy to work with. I'm capturing data in real time (processing live video frames every 40ms/10ms), and once processed I would destroy and GC older data. This data structure must be fast so it won't hit my overall app performance. The faster the better (my alg...

Python / Django : emulating a multidimensional layer on a MySQL database

Hi, I'm working on a Django project where I need to provide a lot of different visualizations on the same data (for example average of a value for each month, for each year / for a location, etc...). I have been using an OLAP database once in college, and I thought that it would fit my needs, but it appears that it is much too heavy fo...

Multidimensional vectors in scheme?

I earlier asked a question about arrays in scheme (turns out they're called vectors but are basically otherwise the same as you'd expect). Is there an easy way to do multidimensional arrays vectors in PLT Scheme though? For my purposes I'd like to have a procedure called make-multid-vector or something. By the way if this doesn't alrea...

C++ Filling an 1D array to represent a n-dimensional object based on a straight line segment

READ FIRST: I have rewritten this question with the help of a friend to be hopefully more specific in what is required. It can be found here I'm not very clear on n-cubes, but I believe they are what I am referring to as the square family. New Question Wording: Perhaps I wasn't clear enough. What I'm asking, is how to set a 1D array to...

Visualize high dimensional field arrows?

Hi, I have a big list of tuples (a, b), where both a and b are 9-dimensional vectors from the same space. This essentially encodes states of a system and some transitions. I would like to visualize the field described by these tuples, as arrows pointing from a->b, either in 2D or 3D. One of my problems however is that this is not a wel...

generate unique array values

hi all. I have a such problem which I couldn't solve in a good manner. My solution needs too much time and loop uses catastrophically big memory. So I need a help. I have 3 mysql tables. Gorups group_id group_name games game_id game_name questions question_id game_id question_name question_text question_groups question_i...

php array generation challange

Please help. I need randomly generate an 2 dimensional nXn array . lets take for now n=10; array should have such structure. one example $igra[]=array(0,1,2,3,4,5,6,7,8,9); $igra[]=array(6,9,1,5,0,2,7,3,4,8); $igra[]=array(2,5.................... $igra[]=array(1,7..................... $igra[]=array(5,4................... $igra[]=arr...

PHP - reformat multidimensional array to insert into MYSQL?

Hello, how can I parse php array like this: $cars= array( "Ford"=>array("C-Max"=>array("length"=>"4333","width"=>"1825","height"=>"1560"),"Escape"=>array("length"=>"4480","width"=>"1845","height"=>"1730") ,"Explorer"=>array("length"=>"4912","width"=>"1872","height"=>"1849"),"Fiesta"=>array("length"=>"3950","width"=>"1973","heigh...

$_POST multidemensional array looping

Hello! So I've created a form wich, by the post function, send me several values. $_POST[groups] sends me, using 4 different checkboxes values 1, 2, 4 and 8. $_POST[retailgroup] does the same, but only the values 1, 2 and 4. The problem is that I want these to add up together and then send the sum of the values to a MySQL table. I've man...

Multidimensional array of object in C++ , I can not initialize it!

Hi everyone! Rookie C++ Programmer here again I'm using VC++ VS2008 and making an attempt at creating an array of arrays. All objects I wish to store I want to put on the heap. In the arrays it's all just pointers. Here's some code: Grid.h #include "Tile.h" class Grid { public: Tile* grid_ptr[8][8]; ... ... }; Grid.c...

Multidimensional array retriving (OOP)

Hello, i have two classes (Database for queries over database) and News for manipulating articles. On index.php (could be any other page) i call News class, which calls Database class. Everything goes ok, until i have to display result on index.php. Let's say, i save result in $news in News class. How should i retrieve that array in in...

How do I add dimensions to textual data in a database?

I have some content in a database, but now I need to add two more dimensions to the content: Language and Reading Level. What is the best way to make content multidimensional? For example, here's the table I have: |-------------| | Food | |-------------| | id | | name | | description | | ... | |----------...

Perl: Threading with shared multi-dimensional hash

I am trying to share a multi-dimensional hash over multiple threads. This hash holds 2 connected key-pairs, I need to know if they are already connected, if they are not, I need to connect them, if not, there is no need to go to the database. use threads; use threads::shared; my %FLUobject2param : shared = (); #Start a new thread f...

PHP multidimensional array

Here's a quickie for the pros: How do I display Value 1, 2, 3 etc as it's in it's third array? $meta_boxes = array ( "checkbox" => array ( "name" => "checkbox", "title" => "", "description" => "This is an example of a checkbox field.", "type" => "checkbox", ...

php multidimensional array from known key values

Hi all, I have a collection of keys in this massive flat single array I would like to basically expand that array into a multidimensional one organized by keys - here is an example: 'invoice/products/data/item1' 'invoice/products/data/item2' 'invoice/products/data/item2' => 'invoice'=>'products'=>array('item1','item2','item3') how...

PHP sort multidimensional array with primary & secondary keys

How do you sort a multidimensional array by primary and secondary key? For example, assuming the following array: $result = array(); $result[0]["prio"] = 1; $result[0]["date"] = '2010-02-28'; $result[0]["post"] = "February's thoughts"; $result[1]["prio"] = 0; $result[1]["date"] = '2010-04-20'; $result[1]["post"] = "April's thoughts"; ...