The shape of the result should be 4 3 4

Linda



Sent from my Verizon, Samsung Galaxy smartphone


-------- Original message --------
From: Henry Rich <[email protected]>
Date: 2/25/19 5:36 PM (GMT-05:00)
To: [email protected]
Subject: Re: [Jprogramming] Try again

   (>:i.3)|."1"0 2 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


Henry Rich


On 2/25/2019 5:30 PM, Linda Alvord wrote:
>     (>:i.3)|."0 2 i.3 4
> 4 5  6  7
> 8 9 10 11
> 0 1  2  3
>
> 8 9 10 11
> 0 1  2  3
> 4 5  6  7
>
> 0 1  2  3
> 4 5  6  7
> 8 9 10 11
>
> Now do the same for columns.
>
>   Linda
>
> Sent from my Verizon, Samsung Galaxy smartphone
> -------- Original message --------
> From: Raul Miller <[email protected]>
> Date: 2/25/19 11:34 AM (GMT-05:00)
> To: Programming forum <[email protected]>
> Subject: Re: [Jprogramming] Try again
>
> I have to wonder why you thought you could rotate four columns by
> specifying three different values for how far to rotate them?
>
> Anyways, rotate works on items, so to rotate individual columns
> differently you would also need make each of the columns be an
> independent item (so the items of each column would be independent of
> items of other columns during the rotation).
>
> In other words (for example):
>
>     1 0 1 0 |."0 1&.|: i. 3 4
> 4 1  6  3
> 8 5 10  7
> 0 9  2 11
>
> I hope this helps,
>
> --
> Raul
>
>
>
> On Mon, Feb 25, 2019 at 1:53 AM lindaalvord <[email protected]> wrote:
>> I expected this to rotate all columns and got aii rows.]b=:i.3 4
>> 0 1 2 3
>> 4 5 6 7
>> 8 9 10 11
>> (1|.i.3) |."0 2 b
>> 4 5 6 7
>> 8 9 10 11
>> 0 1 2 3
>>
>> 8 9 10 11
>> 0 1 2 3
>> 4 5 6 7
>>
>> 0 1 2 3
>> 4 5 6 7
>> 8 9 10 11How can I do that?LindaSent from my Verizon, Samsung Galaxy 
>> smartphone
>> ----------------------------------------------------------------------
>> For information about J forums see 
>> https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Caa498b504d794a11bb8b08d69b71a804%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636867309785082468&amp;sdata=sbMCe11YGX3FbvbyLr3MumaYdRJEwCpGcbCgpoltaW8%3D&amp;reserved=0
> ----------------------------------------------------------------------
> For information about J forums see 
> https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Caa498b504d794a11bb8b08d69b71a804%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636867309785082468&amp;sdata=sbMCe11YGX3FbvbyLr3MumaYdRJEwCpGcbCgpoltaW8%3D&amp;reserved=0
> ----------------------------------------------------------------------
> For information about J forums see 
> https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Caa498b504d794a11bb8b08d69b71a804%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636867309785092473&amp;sdata=yifitK8BxBkZ1l6MRJRipj0SHXz3SzAug4WIFdyF8Nc%3D&amp;reserved=0



---
This email has been checked for viruses by AVG.
https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com&amp;data=02%7C01%7C%7Caa498b504d794a11bb8b08d69b71a804%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636867309785092473&amp;sdata=muZyfTugiRz7WccvY20MKvXLlmuwgOHVAA5p0XTL8hc%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see 
https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htm&amp;data=02%7C01%7C%7Caa498b504d794a11bb8b08d69b71a804%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636867309785092473&amp;sdata=yifitK8BxBkZ1l6MRJRipj0SHXz3SzAug4WIFdyF8Nc%3D&amp;reserved=0
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to