Using C++ in non optional code ?
Hi, I wanted to now if the possibility to use C++ code in scipy was discussed before ? The only C++ code lying around are for optional packages. Several people have expressed the wish to use C++, and I would like to know if there is any official policy regarding its usage. cheers, David
David Cournapeau wrote:
Hi,
I wanted to now if the possibility to use C++ code in scipy was discussed before ? The only C++ code lying around are for optional packages. Several people have expressed the wish to use C++, and I would like to know if there is any official policy regarding its usage.
It's fine. Try not to use non-standard STL (e.g. hash-based maps). -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Robert Kern wrote:
David Cournapeau wrote:
Hi,
I wanted to now if the possibility to use C++ code in scipy was discussed before ? The only C++ code lying around are for optional packages. Several people have expressed the wish to use C++, and I would like to know if there is any official policy regarding its usage.
It's fine. Try not to use non-standard STL (e.g. hash-based maps).
Great, thank you, David
On 8/13/07, David Cournapeau <david@ar.media.kyoto-u.ac.jp> wrote:
I wanted to now if the possibility to use C++ code in scipy was discussed before ? The only C++ code lying around are for optional packages. Several people have expressed the wish to use C++, and I would like to know if there is any official policy regarding its usage.
FWIW scipy.sparse.sparsetools uses C++: http://projects.scipy.org/scipy/scipy/browser/trunk/Lib/sparse/sparsetools In order to template the numpy complex types, I subclassed them and wrote the necessary operators: http://projects.scipy.org/scipy/scipy/browser/trunk/Lib/sparse/sparsetools/c... -- Nathan Bell wnbell@gmail.com
participants (3)
-
David Cournapeau -
Nathan Bell -
Robert Kern