x u/ y is the same as x u"(lu,_) y where lu is the left rank of u.
Henry Rich
On 2/26/2019 5:09 PM, Jimmy Gauvin wrote:
Hi,
table and rank are very close, with rank being more general :
(i.3) +/ i.4
0 1 2 3
1 2 3 4
2 3 4 5
(i.3) +"0 1 i.4
0 1 2 3
1 2 3 4
2 3 4 5
(i.3)+"1 0 i.4
0 1 2
1 2 3
2 3 4
3 4 5
Maybe, at some point in the J interpreter, it's the same code.
Jimmy
On Tue, Feb 26, 2019 at 3:50 PM Linda Alvord <[email protected]>
wrote:
Here's what I did:
|:"2(i.4)|."0 2 |:i.3 4
0 1 2 3
4 5 6 7
8 9 10 11
1 2 3 0
5 6 7 4
9 10 11 8
2 3 0 1
6 7 4 5
10 11 8 9
3 0 1 2
7 4 5 6
11 8 9 10
But table is very impressive!
Thanks, Linda
-----Original Message-----
From: Programming <[email protected]> On Behalf Of
Jimmy Gauvin
Sent: Tuesday, February 26, 2019 5:08 AM
To: [email protected]
Subject: Re: [Jprogramming] Try again
Hi Linda,
We can rotate inside each line by a different amount :
(>:i.3)|. "0 1 i.3 4
1 2 3 0
6 7 4 5
11 8 9 10
Mixing rank and table gives the same result as Henry's expression :
(>:i.3)|."0 1/ i.3 4
1 2 3 0
5 6 7 4
9 10 11 8
2 3 0 1
6 7 4 5
10 11 8 9
3 0 1 2
7 4 5 6
11 8 9 10
Shape of rotation amounts introduces interesting variations :
(>:i.3 1)|."1 i.3 4
1 2 3 0
6 7 4 5
11 8 9 10
Jimmy
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
---
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm