Thread: arrays problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    arrays problem

    i need to resample a 2d array in blocks of 8 X 8.
    to be more elaborate


    @ Zuk
    i am sorry i made mistake.. it looks like this now ..

    Code:
     let 
    a[40][40];
    then i want to get 
    b{ [5][5], [5][5],. . . . .,[5][5] ,
         [5][5], [5][5],. . . . .,[5][5] ,
          .
          .
          .
         [5][5], [5][5],. . . . .,[5][5] }
    
    ie (eight rows and columns  of [5][5] ) ie =64
    
    first  [5][5] array should  contain  a[0][0] to a[5][5] 
    elements of the array a[40][40].
    second [5][5]  array should  contain  a[6][6] to a[10][10]elements of the array a[40][40]. 
    and so on
    @ SlyMaelstrom:
    you are right , i mean this : 40* 40 equlas (5*5)*(8*8)
    the matrix b will be a matrix of 8 by 8 blocks while each block is 5 X 5.

    can any body please sort out the problem ..
    thanks
    Last edited by swapnil_sandy; 11-30-2005 at 03:41 PM. Reason: mistake in the problem statement

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with a problem regarding dynamic memory and arrays
    By Michty in forum C++ Programming
    Replies: 5
    Last Post: 07-26-2006, 01:26 PM
  2. assignment of arrays problem
    By HumbuckeR in forum C++ Programming
    Replies: 4
    Last Post: 04-13-2006, 04:25 PM
  3. Problem with arrays
    By dogbert234 in forum C++ Programming
    Replies: 2
    Last Post: 03-25-2006, 03:06 AM
  4. Problem with character arrays in classes
    By spoketoosoon in forum C++ Programming
    Replies: 3
    Last Post: 03-16-2004, 03:57 AM
  5. Replies: 5
    Last Post: 12-03-2003, 05:47 PM