[Jprogramming] Dyadic viewmat
bill lam
bbill.lam at gmail.com
Tue Aug 5 13:25:35 UTC 2014
What is PAL6 ? Did you forget to define it?
On Aug 5, 2014 9:05 PM, "Linda Alvord" <lindaalvord at 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
>
More information about the Programming
mailing list