From: Andrea R. <ari...@pi...> - 2002-12-11 10:09:04
|
Hi there, I'm playing with Numeric and even if I've not so much experience with it I'm trying to write a C extention to Python that can use Numeric arrays. The basic idea consists in handling C (dynamically allocated) array as Numeric array (if Numeric is installed) or as simple Python lists if not. How can I detect at compile time if Numeric is installed or not?? I've thought something like: #ifdef NUMERIC_IS_HERE #include "Numeric/arrayobject.h" #endif But I've not found any hints in Numeric manual. Can anyone suggest a solution to me? Thanks in advance, Andrea. --- Andrea Riciputi <mailto:and...@li...> "Science is like sex: sometimes something useful comes out, but that is not the reason we are doing it" -- (Richard Feynman) |