From: <jd...@us...> - 2007-12-07 06:29:38
|
Revision: 4664 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4664&view=rev Author: jdh2358 Date: 2007-12-06 22:29:31 -0800 (Thu, 06 Dec 2007) Log Message: ----------- minor tweaks to pyrex Modified Paths: -------------- trunk/py4science/doc/requirements.txt trunk/py4science/workbook/intro_pyrex.tex trunk/py4science/workbook/main.tex Modified: trunk/py4science/doc/requirements.txt =================================================================== --- trunk/py4science/doc/requirements.txt 2007-12-07 04:48:30 UTC (rev 4663) +++ trunk/py4science/doc/requirements.txt 2007-12-07 06:29:31 UTC (rev 4664) @@ -153,9 +153,10 @@ users anyhow, like the abiliy to read and write MS Office documents via the COM API. -- ipython: grab the latest win32 exe installer from the `ipython - distributions`_ page +- install pyreadline_: ipython needs this for tab completion and other handy features +- ipython: grab the latest win32 exe installer from the `ipython distributions`_ page + - numpy: grab the latest exe or msi installer for your version of python at `numpy download`_ @@ -174,6 +175,8 @@ .. _win32com: http://sourceforge.net/project/showfiles.php?group_id=78018&package_id=79063&release_id=449591 +.. _pyreadline: http://ipython.scipy.org/moin/PyReadline/Intro + .. _`ipython distributions`: http://ipython.scipy.org/dist/ .. _`numpy download`: http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=175103 Modified: trunk/py4science/workbook/intro_pyrex.tex =================================================================== --- trunk/py4science/workbook/intro_pyrex.tex 2007-12-07 04:48:30 UTC (rev 4663) +++ trunk/py4science/workbook/intro_pyrex.tex 2007-12-07 06:29:31 UTC (rev 4664) @@ -3,7 +3,7 @@ like python, but is converted by \texttt{pyrex} into python C extension code. It can be used to write custom C extension modules in a python like module to remove performance bottlenecks in code, as -well as to wrap and existing C API with a python binding. \textt{pyrex} +well as to wrap and existing C API with a python binding. \texttt{pyrex} generates C code, so you can use it to automatically generate C extensions that you can ship with your code and users can build your code without \texttt{pyrex} installed. @@ -116,11 +116,11 @@ \section{Working with \texttt{numpy} arrays} -\textt{numpy} arrays are the core of high performance computing in -python, and on of the most common data formats for passing large data +\texttt{numpy} arrays are the core of high performance computing in +python, and one of the most common data formats for passing large data sets around between pyhton code and other wrappers. There are many things that arrays do very well and are practically as fast as a -native C or Fortran implementations, eg convolutions and FFTs. But +native C or FORTRAN implementations, eg convolutions and FFTs. But there are somethings that can be painfully slow in python when working with arrays, for example iterative algorithms over an array of values. For these cases, it is nice to be able to quickly generate some python @@ -130,8 +130,8 @@ \texttt{pyrex} extension code, you can find it, and another file which \texttt{numpy} uses to expose the requisite bits of the Python C API which it needs, in the \texttt{numpy} source code directory -\texttt{numpy/doc/pyrex}. These files are \texttt{c_numpy.pxd} and -\texttt{c_python.pxd}. In addition, \texttt{numpy} provides and +\texttt{numpy/doc/pyrex}. These files are \texttt{c\_numpy.pxd} and +\texttt{c\_python.pxd}. In addition, \texttt{numpy} provides and example file \texttt{numpyx.pyx}that shows you how to build a pyx extension file for multi-dimensional array sof different data types (eg int, float, python object). Here we will be a little less Modified: trunk/py4science/workbook/main.tex =================================================================== --- trunk/py4science/workbook/main.tex 2007-12-07 04:48:30 UTC (rev 4663) +++ trunk/py4science/workbook/main.tex 2007-12-07 06:29:31 UTC (rev 4664) @@ -1,5 +1,3 @@ -%% LyX 1.4.3 created this file. For more info, see http://www.lyx.org/. -%% Do not edit unless you really know what you are doing. \documentclass[english]{amsbook} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |