G
Guest
Hello,
I´m using a very large 2-dimensional double matrix (45.000x45.000)
in my program.
At the initialization of the matrix:
double[,] matrix = new double[45000,45000] I am getting an out of memory
error.
The program is running on a Windows 2003 Server with 8 GB Ram
and 20 GB virtual Ram.
So I thought this must be enough.
If I am sure, a double value uses 8 Byte.
So the matrix must be 45000*45000*8Byte = 15.087 GB.
Is this right?
My first question is now... must a matrix in C# fit in the Main Memory
(8 GB) or are party of the matrix automatically copied to the virtual
Memory if the matrix is too large?
In other words... can I handle a matrix which takes more than 8 GB Ram?
I also tried to use float instead of double but I am getting the same error.
Is there something smaller than a float which I could use?
I need 4 signs behind the comma.
I am logged in as normal user at the Windows 2003 Server.
Do I maybe have some virtual resource restrictions?
It is a "standard-installation".
I would be happy if somebody has an idea how to go on bugtracking my
problem.
Regards,
Martin
I´m using a very large 2-dimensional double matrix (45.000x45.000)
in my program.
At the initialization of the matrix:
double[,] matrix = new double[45000,45000] I am getting an out of memory
error.
The program is running on a Windows 2003 Server with 8 GB Ram
and 20 GB virtual Ram.
So I thought this must be enough.
If I am sure, a double value uses 8 Byte.
So the matrix must be 45000*45000*8Byte = 15.087 GB.
Is this right?
My first question is now... must a matrix in C# fit in the Main Memory
(8 GB) or are party of the matrix automatically copied to the virtual
Memory if the matrix is too large?
In other words... can I handle a matrix which takes more than 8 GB Ram?
I also tried to use float instead of double but I am getting the same error.
Is there something smaller than a float which I could use?
I need 4 signs behind the comma.
I am logged in as normal user at the Windows 2003 Server.
Do I maybe have some virtual resource restrictions?
It is a "standard-installation".
I would be happy if somebody has an idea how to go on bugtracking my
problem.
Regards,
Martin