On Thu, Jun 3, 2010 at 2:48 PM, Kobi Lurie <[email protected]> wrote: > Hi guys, so I took it up on Slava's words, > and tried. > http://paste.factorcode.org/paste?id=1713 > > I haven't tested much as I just wrote it. > But it seems like it works. (i think the calculation is ok too, but my > math is lousy so..)
I think that's a good start, Kobi. Here's a revised version that precalculates the strides and allows for a more general underlying sequence type. By manipulating the value in the "strides" slot, the same type could handle row- or column-major layouts as well as J-style slices. http://paste.factorcode.org/paste?id=1716 -Joe ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
