#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    1
    Rep Power
    0

    2D array Vs 3D array


    Greetings all. I am new at this side. Lately we are working in a example at collage. How to convert a 2D 3x3 array into a 3D 3x3x0 array. Below you can see our code at 2D 3x3. If anyone could help doing with a 3D it would be awesome:



    Thank you!!!
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,841
    Rep Power
    480
    Cannot see your program, but I do like the 0 dimension in the final array. Shape is half the battle!

    Originally Posted by Donald McIntyre, APL Users Meeting, 1980-10
    [Commenting on the empty vector:] I think we have the Arabs to thank for inventing zero, but I know that we have Dr. Iverson to thank for inventing nothing.
    Reference link: APL Quotations and Anecdotes
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo