Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 11th, 2006, 04:55 PM
Thiago Silva
Guest
 
Posts: n/a
Default Multi dimensional Array

Hello,
Anyone knows where I could find a class implementation for multi
dimensional
arrays? One wich can be created with variable number of dimension/sizes
dinamically?

I've tried the boost multi_array, but the dimension has to be fixed at
compile time (since its an template argument).

Thanks
+Thiago Silva

  #2  
Old January 11th, 2006, 05:15 PM
mlimber
Guest
 
Posts: n/a
Default Re: Multi dimensional Array

Thiago Silva wrote:[color=blue]
> Hello,
> Anyone knows where I could find a class implementation for multi
> dimensional
> arrays? One wich can be created with variable number of dimension/sizes
> dinamically?
>
> I've tried the boost multi_array, but the dimension has to be fixed at
> compile time (since its an template argument).
>
> Thanks
> +Thiago Silva[/color]

There are many out there. Google for Matrix classes and/or see the FAQ:

http://www.parashift.com/c++-faq-lit....html#faq-37.9

Also, see this FAQ, which may be all you need:

http://www.parashift.com/c++-faq-lit...html#faq-16.19

Cheers! --M

  #3  
Old January 11th, 2006, 05:15 PM
roberts.noah@gmail.com
Guest
 
Posts: n/a
Default Re: Multi dimensional Array


Thiago Silva wrote:[color=blue]
> Hello,
> Anyone knows where I could find a class implementation for multi
> dimensional
> arrays? One wich can be created with variable number of dimension/sizes
> dinamically?
>
> I've tried the boost multi_array, but the dimension has to be fixed at
> compile time (since its an template argument).[/color]

typedef std::vector< std::vector<xtype> > TwoDim;

That is by far the easiest method to do what you want.

  #4  
Old January 11th, 2006, 05:15 PM
Victor Bazarov
Guest
 
Posts: n/a
Default Re: Multi dimensional Array

Thiago Silva wrote:[color=blue]
> Anyone knows where I could find a class implementation for multi
> dimensional
> arrays? One wich can be created with variable number of dimension/sizes
> dinamically?[/color]

Have you tried www.google.com?


V
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles