[Lapackpp-devel] Memory Allocation
Status: Beta
Brought to you by:
cstim
|
From: kevin c. <kev...@gm...> - 2005-09-15 17:16:13
|
Hi,
I have used lapack++ to allocate memory for a 128x128 element
matrix (LaGenMatDouble), which works fine. When I try to allocate
values to the elements I get a segmentation fault. As I understand
it, this means that my program is trying to access memory that has not
been allocated to it. The error goes away if I use a smaller matrix
(113x113, for example), so I think that the code works, it just runs
out of memory. I was wondering if this is due to the memory being
allocated on the stack instead of the heap, thus not giving much room
for large arrays. If so, how can I get the memory allocated to the
heap instead? If not, does anyone know what the problem could be?
|