Results 1 to 20 of 20

Thread: [RESOLVED] speed improvement in multidimensional array mod

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    28

    Resolved [RESOLVED] speed improvement in multidimensional array mod

    Hi to everyone,
    I suppose that the answer is "no way", but "asking is for free"...

    I have a 3D array and I need to divide by a vixed value (256) every element of the array.
    I'd like to do it in a faster way than using "nested for" code like this

    Code:
    for i=0 to x
        for j=0 to y
            for k=0 to z
                 a(i,j,k)=b(i,j,k)\256
            next k
        next j
    next i
    is there any possibility?
    Last edited by andreaconsole; Jan 10th, 2010 at 12:55 PM. Reason: nested for, not nested if :D

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width