The second expression should not have signalled error.
This bug has now been fixed for the next release.
Thank you for finding and reporting it.



----- Original Message -----
From: "R.E. Boss" <[EMAIL PROTECTED]>
Date: Wednesday, September 12, 2007 23:22
Subject: [Jprogramming] Rank of rotate
To: 'Programming forum' <[email protected]>

> 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?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to