Rubik's cube translation
- From: castironpi@xxxxxxxxx
- Date: Sun, 30 Mar 2008 18:24:48 -0700 (PDT)
How do I get a Rubik's cube translation out of this:
array([[0, 1, 2],a= numpy.array([[0,1,2],[3,4,5],[6,7,8]])
a
[3, 4, 5],
[6, 7, 8]])
(array([0, 3, 6]), array([1, 4, 7]), array([2, 5, 8]))a[:,0],a[:,1],a[:,2] #no good
I need [[ 6, 3, 0 ], [ 7, 4, 1 ], [ 8, 5, 2 ]].
array([[6, 3, 0],c= numpy.array([[ 6, 3, 0 ], [ 7, 4, 1 ], [ 8, 5, 2 ]])
c
[7, 4, 1],
[8, 5, 2]])
.
- Follow-Ups:
- Re: Rubik's cube translation
- From: Tim Leslie
- Re: Rubik's cube translation
- Prev by Date: Re: Odd behaviour with list comprehension
- Next by Date: Re: Please test Phatch on Windows (was Re: ANN: Phatch = PHoto bATCH processor and renamer based on PIL)
- Previous by thread: www.crazysupplier.com cheap nike shox,wholesale jordans, cheap air jordans, Cheap ...
- Next by thread: Re: Rubik's cube translation
- Index(es):