Search:

Type: Posts; User: ShaunMahony

Search: Search took 0.01 seconds.

  1. Replies
    24
    Views
    51,594

    Salem; I've tried this on my code and it seems...

    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...
  2. Replies
    24
    Views
    51,594

    Oh, actually Stack Overflow, I read through your...

    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....
  3. Replies
    24
    Views
    51,594

    itsme86: you have "y" calls to...

    itsme86: you have "y" calls to malloc(sizeof(double) * z);, and therefore your data is not guaranteed to be contiguous.
  4. Replies
    24
    Views
    51,594

    Hey Stack Overflow: That looks really good;...

    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...
  5. Replies
    24
    Views
    51,594

    Okay, well we won't argue over semantics, but it...

    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...
  6. Replies
    24
    Views
    51,594

    Hey itsme86, This is a contiguous allocation;...

    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...
  7. Replies
    24
    Views
    51,594

    4-dimensional array contiguous allocation

    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...
Results 1 to 7 of 7