You can use the same syntax as numpy.

On Sat, May 06, 2017, aLEE wrote:
> 
> as this question about numpy  [link 
> <http://stackoverflow.com/questions/10936767/rearranging-matrix-elements-with-numpy>
> ]
> 
> #                 a  b  c  d  e  f
> A = numpy.array([[0, 1, 2, 3, 4, 5],
>                  [1, 0, 3, 4, 5, 6],
>                  [2, 3, 0, 5, 6, 7],
>                  [3, 4, 5, 0, 7, 8],
>                  [4, 5, 6, 7, 0, 9],
>                  [5, 6, 7, 8, 9, 0]])
> #            a  d  b  e  c  f
> new_order = [0, 3, 1, 4, 2, 5]
> A1 = A[:, new_order][new_order]
> 
> 
> 
> 
> for a theano.tensor, how to implement this ? 
> 
> thanks 
> 
> 
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.


-- 
Pascal

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to