Differences between revisions 4 and 5
Revision 4 as of 2005-10-10 06:09:28
Size: 228
Editor: 62
Comment:
Revision 5 as of 2005-10-10 11:00:20
Size: 1293
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
The Best monitor Directory on the Web The weave package allows the inclusion of C/C++ within Python code. It is part of the larger SciPy package (http://www.scipy.org), but is also available as a stand alone package (http://scipy.org/site_content/weave) so that more people can try it out.
Line 3: Line 3:
http://www.monitordirectory.vip.su Including C/C++ code within Python offers both another level of optimization to those who need it, and an easy way to modify and extend an supported extension libraries such as wxPython and hopefully VTK soon. Inlining C/C++ code within Python generally results in speed ups of 1.5x to 30x speed-up over algorithms written in pure Python (However, it is also possible to slow things down...). Generally algorithms that require a large number of calls to the Python API don't benefit as much from the conversion to C/C++ as algorithms that have inner loops completely convertable to C.
Line 5: Line 5:
Monitor Directory has delivered to the market scores of standard and custom products and software solutions. There are three basic ways to use weave. The weave.inline() function executes C code directly within Python, and weave.blitz() translates Python Numeric expression to C++ for fast execution. blitz() was the original functionality for which weave was built. For those interested in building extension libraries, the ext_tools module provides classes for building extension modules within Python.
Line 7: Line 7:
http://www.monitordirectory.vip.su More on http://www.scipy.org/site_content/weave

The weave package allows the inclusion of C/C++ within Python code. It is part of the larger SciPy package (http://www.scipy.org), but is also available as a stand alone package (http://scipy.org/site_content/weave) so that more people can try it out.

Including C/C++ code within Python offers both another level of optimization to those who need it, and an easy way to modify and extend an supported extension libraries such as wxPython and hopefully VTK soon. Inlining C/C++ code within Python generally results in speed ups of 1.5x to 30x speed-up over algorithms written in pure Python (However, it is also possible to slow things down...). Generally algorithms that require a large number of calls to the Python API don't benefit as much from the conversion to C/C++ as algorithms that have inner loops completely convertable to C.

There are three basic ways to use weave. The weave.inline() function executes C code directly within Python, and weave.blitz() translates Python Numeric expression to C++ for fast execution. blitz() was the original functionality for which weave was built. For those interested in building extension libraries, the ext_tools module provides classes for building extension modules within Python.

More on http://www.scipy.org/site_content/weave

weave (last edited 2014-05-14 23:37:06 by DaveKuhlman)

Unable to edit the page? See the FrontPage for instructions.