Boost logo

Boost Users :

Subject: [Boost-users] multi_array with large dimensions crashes
From: Jothy (jothybasu_at_[hidden])
Date: 2011-08-23 06:18:50


Hi all,

I have just started to use boost libs. I am trying to create a large float
array (mandatory for my purpose). it works fine till certain limit, but
crashes above that. I think it about allocating memory in the stack.

My code is like this

typedef boost::multi_array<float,3> array_type;
typedef array_type::index index;
array_type Array(boost::extents[xDim][yDim][zDim]);//500,300,400 for
instance

Can some one help me to resolve this?

Thanks

Jothy



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net