Remarkably, if an extra "_ is added everything works fine

   (=i.2)|."_"2 i.3 4 5
 5  6  7  8  9
10 11 12 13 14
15 16 17 18 19
 0  1  2  3  4

 1  2  3  4  0
 6  7  8  9  5
11 12 13 14 10
16 17 18 19 15


25 26 27 28 29
30 31 32 33 34
35 36 37 38 39
20 21 22 23 24

21 22 23 24 20
26 27 28 29 25
31 32 33 34 30
36 37 38 39 35


45 46 47 48 49
50 51 52 53 54
55 56 57 58 59
40 41 42 43 44

41 42 43 44 40
46 47 48 49 45
51 52 53 54 50
56 57 58 59 55


R.E. Boss



> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:programming-
> [EMAIL PROTECTED] Namens R.E. Boss
> Verzonden: donderdag 13 september 2007 8:22
> Aan: 'Programming forum'
> Onderwerp: [Jprogramming] Rank of rotate
> 
> To rotate a matrix by its axes separately one does
> 
>    (=i.2)|.i.3 4
> 4  5  6  7
> 8  9 10 11
> 0  1  2  3
> 
> 1  2  3  0
> 5  6  7  4
> 9 10 11  8
> 
> This works as expected.
> However
> 
>    (=i.2)|."2 i.3 4 5
> |length error
> |   (=i.2)    |."2 i.3 4 5
> 
> This is strange, since it should be equal to
> 
>    (=i.2)|.&>&<"2 i.3 4 5
>  5  6  7  8  9
> 10 11 12 13 14
> 15 16 17 18 19
>  0  1  2  3  4
> 
>  1  2  3  4  0
>  6  7  8  9  5
> 11 12 13 14 10
> 16 17 18 19 15
> 
> 
> 25 26 27 28 29
> 30 31 32 33 34
> 35 36 37 38 39
> 20 21 22 23 24
> 
> 21 22 23 24 20
> 26 27 28 29 25
> 31 32 33 34 30
> 36 37 38 39 35
> 
> 
> 45 46 47 48 49
> 50 51 52 53 54
> 55 56 57 58 59
> 40 41 42 43 44
> 
> 41 42 43 44 40
> 46 47 48 49 45
> 51 52 53 54 50
> 56 57 58 59 55
> 
> What's wrong?
> 
> 
> R.E.Boss
> 
> 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to