[Gsll-devel] grid: map-n-grids example

Mirko Vukovic mirko.vukovic at gmail.com
Thu Mar 4 20:48:18 UTC 2010


Hello,

I just spent a few minutes on figuring out how to use map-n-grids as there
are no examples in the distribution or documentation.

Here is one example, here is one that accomplishes the following (in
pseudo-code):

(map 'grid #'(lambda (x1 x2) (- x1 x2)) grid1 grid2)

(map-n-grids :sources `((,*array-3-4-double-float* ,(affi
*array-3-4-double-float*))
            (,*array-3-4-double-float* ,(affi *array-3-4-double-float*)))
         :combination-function #'(lambda (i x1 x2)
                       (print i)
                       (- x1 x2)))

In this example, I am not sure of the role of the first variable (I did not
have more time to stare at map.list)

Mirko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/gsll-devel/attachments/20100304/587036db/attachment.html>


More information about the gsll-devel mailing list