Re: [Lapackpp-devel] Memory Allocation
Status: Beta
Brought to you by:
cstim
From: Christian S. <sti...@tu...> - 2005-09-16 07:37:34
|
Hi Kevin, can you provide some example code that demonstrates the error? Allocation itself usually is not a problem, even for much larger matrices (can be verified by ./matrix/testing/tgd 200 200). However, it is true that lapackpp unfortunately doesn't check for successful allocation of a new matrix. I'll add this in CVS soon. Regards, Christian kevin channon schrieb: > 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? |