You just need to transpose it to get shape 3 5 5

    1 0 2 |: 3 T 5
0 0 0 0 0
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4

0 0 0 0 0
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4

0 0 0 0 0
1 1 1 1 1
2 2 2 2 2
3 3 3 3 3
4 4 4 4 4

Ср, 08 июн 2016, Lippu Esa написал(а):
> Hi Bo,
> 
> I came up with this. The shape is 5 3 5, though.
> 
> T=:([,]) $"_ 0 [:i.]
> 3 T 5
> 0 0 0 0 0
> 0 0 0 0 0
> 0 0 0 0 0
> 
> 1 1 1 1 1
> 1 1 1 1 1
> 1 1 1 1 1
> 
> 2 2 2 2 2
> 2 2 2 2 2
> 2 2 2 2 2
> 
> 3 3 3 3 3
> 3 3 3 3 3
> 3 3 3 3 3
> 
> 4 4 4 4 4
> 4 4 4 4 4
> 4 4 4 4 4
> 
> Esa
> -----Original Message-----
> From: Programming [mailto:[email protected]] On Behalf 
> Of 'Bo Jacoby' via Programming
> Sent: keskiviikkona 8. kesäkuuta 2016 12.23
> To: [email protected]
> Subject: [Jprogramming] Help me using rank (")
> 
> Dear J'ers. 
> Please tell me how to program the 3 5 5 array below.
> I am experimenting rather than understanding. I expect the answer to be quite 
> elementary. 
> Thanks! Bo.
> 
> 0 0 0 0 01 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 4
> 0 0 0 0 01 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 4
> 0 0 0 0 01 1 1 1 12 2 2 2 23 3 3 3 34 4 4 4 4
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to