Hi there!. I am performing some calculations with matrices but it happens that I have a lack of RAM memory.
I know how to calculate the memory allocated for a unidimensional array but not higher order. Can anyone provide me a code to know how many bytes have I allocated (as a function of N) for this multidimensional array? You can look the code below.
My system monitor tells me the application occupy about 1.2 GB which is what you said.
So simply multiply the total number of elements times the number of bytes a double occupies (yes, it is 8 bytes in my case).
I was asking for a code, but I'm satisfied with your explanation.