Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > General Problems in Using NR

Reply
 
Thread Tools Display Modes
  #1  
Old 03-28-2012, 01:00 PM
Munich Munich is offline
Registered User
 
Join Date: Mar 2012
Posts: 1
Is there a size limit on Mat_DP ?

My application crashes when I try allocating Mat_DP of large sizes. I am trying to allocate matrices having sizes 300,000 by 300,000.

Is there a limit to Mat_DP sizes?

Other information that may prove helpful, is that my machine has 16 gb of memory, and I am compiling my Visual Studio project in 64 bits.

Thank you for any help!
Reply With Quote
  #2  
Old 03-29-2012, 09:03 AM
Saul Teukolsky Saul Teukolsky is offline
Numerical Recipes Author
 
Join Date: Dec 2001
Posts: 211
A matrix of size 300,000 by 300,000 has 3 x 10^5 times 3 x 10^5 = 9 x 10^10 elements. Each element is a double taking 8 bytes, so the total storage is 72 x 10^10 bytes, or 720 GB. So no hope of storing it on a typical machine. More important, just looping through such a large array to do a few operations would take a huge amount of time.

If most of the elements of your matrix are zero, take a look at the sparse matrix routines in section 2.7 or the band-diagonal routines in section 2.4

Saul Teukolsky
Reply With Quote
  #3  
Old 08-05-2013, 11:00 PM
SenorPlaet
Guest
 
Posts: n/a
Each element is a double taking 8 bytes, so the total storage is 72 x 10^10 bytes. These sports and activities can include sexy swimwear au, jet skiing, rafting, or visiting a water park.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is On

Forum Jump


All times are GMT -5. The time now is 12:46 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.