Out of memory with 2-dimensional float/double matrix

C

chanmm

Do you mind to put your code here with some explanation or email it to me?
No promise but I can try to look at it.

chanmm
 
J

Jon Skeet [C# MVP]

Jani Järvinen said:
Thanks for pointing this out Willy, I was thinking in terms of what the
platform can do. So if you wanted to do this in C#, you'd need to resort to
using P/Invoke and not managed code.

You could use a jagged array instead of a truly multi-dimensional
array. That way you'd have 45,000 arrays of longs each of which would
be 8*45K=360K, and one array of arrays which would be 4*45K=180K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top