[Jprogramming] how to work with images - or 2D arrays?

Raul Miller rauldmiller at gmail.com
Thu May 31 02:33:05 HKT 2012


That's easy:

   1 2 |.!.0] 5 5$9
9 9 9 0 0
9 9 9 0 0
9 9 9 0 0
9 9 9 0 0
0 0 0 0 0


What's tricky is figuring out (and implementing) the rules for the
implicit resizing.

In my opinion, the resizing should be factored out as separate
operations so that the user can pick the appropriate mechanism for the
task at hand.

-- 
Raul

On Wed, May 30, 2012 at 1:49 PM, Devon McCormick <devonmcc at gmail.com> wrote:
> I'm guessing that a 2D version should allow for a different shift per dimension.
>
> On Wed, May 30, 2012 at 1:26 PM, Brian Schott <schott.brian at gmail.com> wrote:
>> Continuing with 1D and allowing for negative shift I have the following
>> Still no 2D version, though.
> ...
> --
> Devon McCormick, CFA
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list