Salem;
I've tried this on my code and it seems to work perfectly. That's a really nice way of doing things in the 4D case; nice work. You don't know how much time you've just saved me. Thanks a...
Type: Posts; User: ShaunMahony
Salem;
I've tried this on my code and it seems to work perfectly. That's a really nice way of doing things in the 4D case; nice work. You don't know how much time you've just saved me. Thanks a...
Oh, actually Stack Overflow, I read through your code wrong. Your code won't give contiguous dataspace at all. I wonder can I use that code to allocate pointers to an already allocated memory space....
itsme86: you have "y" calls to malloc(sizeof(double) * z);, and therefore your data is not guaranteed to be contiguous.
Hey Stack Overflow:
That looks really good; thanks a million!
One question though; is the data gauranteed to be contiguous. I'm not familiar with the notation you used in the malloc calls. What...
Okay, well we won't argue over semantics, but it remains that there is a single call where a block of doubles is allocated contiguously. The pointers can indeed be seen as separate arrays if you...
Hey itsme86,
This is a contiguous allocation; there is only one malloc call where doubles are actually allocated. The other malloc calls are there to set up the pointers so that the notation...
Hi all,
I was wondering if anyone could help me to allocate a 4-dimensional array as a contiguous block of memory. I've figured out how to do this for the 3-dimensional case (see code below), but am...