$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-06-12 14:12:45
Well if its contiguous, that's your problem. Likely it just can't allocate that much contiguous memory. 
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] 
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of 
> Ronald Garcia
> Sent: Monday, June 12, 2006 11:02 AM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [boost.multi_array] Best use of memory
> 
> 
> Hello Sebastien,
> 
> Ideally, you should be able to work with an array of doubles, 
> rather than an array of pointers to double. I can create an 
> multi_array with the dimensions you mention.  
> 
> To answer your questions, multi_array uses a standard library 
> allocator to allocate a contiguous block of memory in which 
> to hold the array data.  I'm afraid I do not know why you 
> cannot exceed these limits.
> 
> ron
> 
> 
> 
> 
> 	I'm currently using multi_array to represent 3D 
> matrices of doubles, I 
> 	was wondering which would be the best use since the 
> array has to hold a 
> 	very large amount of data. I' currently testing whith a 
> multi_array of 
> 	800x800x100 to hold double or pointers to double and I 
> have memory 
> 	problems. When I declare the multi_array whith pointers 
> to doubles I can 
> 	usually go up to 775x775x100 without problems but when 
> I try the same 
> 	thing with a multi_array of doubles I get a bad alloc 
> error. My real 
> 	needs for the moment are for a multi_array of 
> 800x600x57 but I will need 
> 	bigger storage capacity in the near future, what are 
> your sugesstions. 
> 
> 	Is the multi_array a pointer itself? 
> 	How is memory management handled? 
> 	How can go beyond these limits? 
> 
> 	
> 	
> 
> 	-- 
> 	Sébastien Fortier
> 
> 
>