[iterate-devel] destructively altering elements

Albert Krewinkel krewink at inb.uni-luebeck.de
Wed Jun 27 09:07:22 UTC 2007


Hello,

I'm doing some matrix operations and would like to use iterate for
going through my matrices element wise.  Writing an driver to do this
was pretty easy (great tools and manual!), but it doesn't allow me to
alter entries in my matrix.

Therefore I was wondering if there is some easy way to write something
like

(FOR el IN-MATRIX vec)

that expands to

(symbol-macrolet ((el (aref vec row-index col-index)))
   (... body...))


If there is no way to do this, could you please provide me with some
pointers about how I can contribute to add such feature?

Thanks in advance

Albert


Note: I asked this question on comp.lang.lisp and was redirected here.
For the corresponding thread see
http://groups.google.de/group/comp.lang.lisp/browse_thread/thread/007e487752f1d095

-- 
Albert Krewinkel <krewink (at) inb.uni-luebeck.de>
University of Luebeck, Institute for Neuro- and Bioinformatics
http://www.inb.uni-luebeck.de/~krewink/



More information about the iterate-devel mailing list