[Numpy-discussion] Compile extension modules with Visual Studio 2005
gael.varoquaux at normalesup.org
Tue Jul 24 15:46:50 EDT 2007
On Tue, Jul 24, 2007 at 02:32:10PM -0500, Robert Kern wrote:
> > I haven't looked at PyMultilter objects. I am just trying to build a
> > 'vector version' of my C function so that it can do batch
> > calculations. For example, for a vector X, I can do
> > for x in X: y=my_func(x)
> > Or I can do Y=my_vector_func(X).
> > The latter is probably much more efficient. That's why I need the extension.
> ctypes would be an option, then. You would just do the loop in C.
I agree with Robert that ctypes is probably the simplest option. Have a
look at http://scipy.org/Cookbook/Ctypes
More information about the NumPy-Discussion