​​
Remember the diagonals combinations too:

   (<0 1 2)|: i.3 4 5

0 26 52

   (<0 1)|: i.3 4 5

0 25 50

1 26 51

2 27 52

3 28 53

4 29 54

On Wed, Jan 24, 2018 at 8:54 AM, David Lambert <[email protected]> wrote:

> I'm so clueless about dyadic transpose I now go straight away to trying
> all 6 combinations of x for a rank 3 array, then choose the one which looks
> right.
> "x|:y moves axesx to the tail end."  Yes I'll study the NuVoc description
> now.
>
>> Date: Wed, 24 Jan 2018 18:32:18 +1100
>> From: Rob Hodgkinson<[email protected]>
>> To:[email protected]
>> Subject: Re: [Jprogramming] Reshaping 3+d matrices
>> Message-ID:<[email protected]>
>> Content-Type: text/plain; charset=utf-8
>>
>> Hi John, did you try dyadic transpose (x |: y) where x is a reposition
>> vector of dimensions …
>>
>>     (1 0 2 |: mat) -: |:"2|:"3|:"2 mat
>> 1
>>
>> …/Rob
>>
>
> ----------------------------------------------------------------------
> 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