On Sun, Jul 29, 2012 at 6:07 PM, Matthias Felleisen
<[email protected]> wrote:
>
> For 81 slots, I'd actually use a (define b (make-vector 81 0)) instead and 
> use an access polynomial. I am almost certain that it is faster.

I'm unfamiliar with the term 'access polynomial'.  Would it be
accurate to say that it's a function f:

   f: (number number -> number)

such as

    (define COLUMN-LENGTH 9)
    (define (f row col) (+ (* row COLUMN-LENGTH) col))

allows us to treat the flat vector as if it were a two-dimensional
structure, by translating (row,col) into offsets?
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to