|
From: Mirko V. <mir...@gm...> - 2009-02-20 23:31:01
|
On Fri, Feb 20, 2009 at 5:02 PM, Mirko Vukovic <mir...@gm...>wrote: > Consider the following defun with five arguments that returns a scalar. > (defun f1-2-parallel-coaxial-rings (r1-inner r1-outer sep > r2-inner r2-outer) > > How to vectorize that? Do we need a reader macro here? (I only have a > foggy idea what they do) > > Cheers, > > Mirko > Well, it was not that hard. I defined a helper function of two arguments that fixes the other arguments and then calls the five-argument function. Then I subjected that function to make-f-2-arg. But, one has to be a real lisp lover in order to prefer this to the built-in features of idl & matlab :-) Mirko |