I tested it work fine on android. It gave 2 viewmats, both of them looked the same. To make PAL6 somewhat different,
> PAL6=: |. 6 3$0 0 255 0 255 255 0 255 0 255 255 0 255 0 0 255 0 255 then the red and blue components swapped. Is that the expected result? On Aug 6, 2014 9:28 AM, "Linda Alvord" <lindaalv...@verizon.net> wrote: > Bill, > > Here's the code: It works fine in jqt. I was surprised it worked at all > in jhs. The monadic version of viewmat is good and the dyadic version > doesn't work. I did omit the PAL6 in the post. > > oad 'viewmat' > i.5 > +/i.5 > >:i.5 > +/>:i.5 > i:5 > +/i:5 > i.0 > i:0 > i."0 i.5 > i."0>:i.5 > ]D=:i:"0>:i:5 > $D > $,D > <./,D > > ]PAL6=:6 3$0 0 255 0 255 255 0 255 0 255 255 0 255 0 0 255 0 255 > viewmat D;'viewmat D' > PAL6 viewmat D;'PAL6' > > Linda > > e----- > From: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of bill lam > Sent: Tuesday, August 05, 2014 9:26 AM > To: Programming forum > Subject: Re: [Jprogramming] Dyadic viewmat > > What is PAL6 ? Did you forget to define it? > On Aug 5, 2014 9:05 PM, "Linda Alvord" <lindaalv...@verizon.net> wrote: > > > load 'viewmat' > > > > i.5 > > > > 0 1 2 3 4 > > > > +/i.5 > > > > 10 > > > > >:i.5 > > > > 1 2 3 4 5 > > > > +/>:i.5 > > > > 15 > > > > i:5 > > > > _5 _4 _3 _2 _1 0 1 2 3 4 5 > > > > +/i:5 > > > > 0 > > > > i.0 > > > > i:0 > > > > 0 > > > > i."0 i.5 > > > > 0 0 0 0 > > 0 0 0 0 > > 0 1 0 0 > > 0 1 2 0 > > 0 1 2 3 > > > > i."0>:i.5 > > > > 0 0 0 0 0 > > 0 1 0 0 0 > > 0 1 2 0 0 > > 0 1 2 3 0 > > 0 1 2 3 4 > > > > ]D=:i:"0>:i:5 > > > > 4 3 2 1 0 _1 _2 _3 _4 0 0 0 0 > > 3 2 1 0 _1 _2 _3 0 0 0 0 0 0 > > 2 1 0 _1 _2 0 0 0 0 0 0 0 0 > > 1 0 _1 0 0 0 0 0 0 0 0 0 0 > > 0 0 0 0 0 0 0 0 0 0 0 0 0 > > _1 0 1 0 0 0 0 0 0 0 0 0 0 > > _2 _1 0 1 2 0 0 0 0 0 0 0 0 > > _3 _2 _1 0 1 2 3 0 0 0 0 0 0 > > _4 _3 _2 _1 0 1 2 3 4 0 0 0 0 > > _5 _4 _3 _2 _1 0 1 2 3 4 5 0 0 > > _6 _5 _4 _3 _2 _1 0 1 2 3 4 5 6 > > > > $D > > > > 11 13 > > > > $,D > > > > 143 > > > > <./,D > > > > _6 > > > > >./,D > > > > 6 > > > > viewmat D;'viewmat D' > > > > > > > > > > > > This works differently than yesterday. No bitmap but image is in > terminal > > > > > > > > PAL6 viewmat D;'PAL6' > > > > |domain error: viewmat > > | PAL6 viewmat D;'PAL6' > > |[-18] c:\users\owner\j802-user\temp\a strategy 4.ijs > > > > > > > > > > > > Linda > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm