I don't know the answer to you question.  Maybe this will be helpful.  You
can rename so you will find the names to be useful.

    ]A=:i.2 3
0 1 2
3 4 5
   ]B=:i.3 3 
0 1 2
3 4 5
6 7 8
   f=: 13 :'|:|.y'
   f A
3 0
4 1
5 2
   f B
6 3 0
7 4 1
8 5 2
   f f B
8 7 6
5 4 3
2 1 0
   f f  f B
2 5 8
1 4 7
0 3 6
   f^:4 B
0 1 2
3 4 5
6 7 8
 
Linda

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Francesco
Pedulla'
Sent: Tuesday, April 22, 2014 11:21 AM
To: [email protected]
Subject: [Jprogramming] Bug or feature in Power conjunction?

Hello everybody,
I am using J801 under Ubuntu. Here is a behaviour I do not understand:

   mat=:i.2 3
   r90=:|."1@:|:"2
   r90^:0 mat
0 1 2
3 4 5
   r90^:1 mat
3 0
4 1
5 2
   r90^:2 mat
5 4 3
2 1 0

So far, so good. But:

   r90^:(i.3) mat
0 1 2
3 4 5
0 0 0

3 0 0
4 1 0
5 2 0

5 4 3
2 1 0
0 0 0

Why the additional row of zeros?

Thanks for any hint,

Francesco
----------------------------------------------------------------------
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