hzhan0607 / cusp-library

Automatically exported from code.google.com/p/cusp-library
Apache License 2.0
0 stars 0 forks source link

Memory issue with diagonal format with row-major ordering #97

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Change the diagonal matrix format from column-major to row-major (change line 
120 in dia_matrix.h)
2.Try to allocate a 5 diagonal matrix with a large size (say 250Kx25K)
3.You quickly run out of memory

What is the expected output? What do you see instead?
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

What version of the product are you using? On what operating system?
x86_64 GNU/Linux
Kernel 2.6.18-274.12.1.el5 

Please provide any additional information below.
For small matrix sizes, it works fine. But, it apparently consumes huge amount 
of memory.

Original issue reported on code.google.com by mr.alm...@gmail.com on 29 May 2012 at 9:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The type should have been "Enhancement" instead of "Defect".
Sorry about that.

Original comment by mr.alm...@gmail.com on 29 May 2012 at 9:49

GoogleCodeExporter commented 8 years ago

Original comment by filipe.c...@gmail.com on 29 May 2012 at 10:06