summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLars Buitinck <larsmans@gmail.com>2014-11-17 00:19:59 +0100
committerLars Buitinck <larsmans@gmail.com>2014-11-17 00:21:53 +0100
commit6cfb0c65e7bab84f53992bb27f7a6c12e88406ea (patch)
tree2cba9d114a8bc3ece980eaf6327fd933fc03bd65 /doc
parentcfa095a203586eae9466f5ebbbdc5f60905aeb20 (diff)
downloadnumpy-6cfb0c65e7bab84f53992bb27f7a6c12e88406ea.tar.gz
DOC: python-as-glue: remove Instant, PyInline
Both projects appear to be dead.
Diffstat (limited to 'doc')
-rw-r--r--doc/source/user/c-info.python-as-glue.rst64
1 files changed, 0 insertions, 64 deletions
diff --git a/doc/source/user/c-info.python-as-glue.rst b/doc/source/user/c-info.python-as-glue.rst
index 8dfd39beb..77e1be9c9 100644
--- a/doc/source/user/c-info.python-as-glue.rst
+++ b/doc/source/user/c-info.python-as-glue.rst
@@ -1452,70 +1452,6 @@ have a set of C++ classes that need to be integrated cleanly into
Python, consider learning about and using Boost.Python.
-Instant
--------
-
-.. index::
- single: Instant
-
-This is a relatively new package (called pyinstant at sourceforge)
-that builds on top of SWIG to make it easy to inline C and C++ code in
-Python very much like weave. However, Instant builds extension modules
-on the fly with specific module names and specific method names. In
-this repsect it is more more like f2py in its behavior. The extension
-modules are built on-the fly (as long as the SWIG is installed). They
-can then be imported. Here is an example of using Instant with NumPy
-arrays (adapted from the test2 included in the Instant distribution):
-
-.. code-block:: python
-
- code="""
- PyObject* add(PyObject* a_, PyObject* b_){
- /*
- various checks
- */
- PyArrayObject* a=(PyArrayObject*) a_;
- PyArrayObject* b=(PyArrayObject*) b_;
- int n = a->dimensions[0];
- int dims[1];
- dims[0] = n;
- PyArrayObject* ret;
- ret = (PyArrayObject*) PyArray_FromDims(1, dims, NPY_DOUBLE);
- int i;
- char *aj=a->data;
- char *bj=b->data;
- double *retj = (double *)ret->data;
- for (i=0; i < n; i++) {
- *retj++ = *((double *)aj) + *((double *)bj);
- aj += a->strides[0];
- bj += b->strides[0];
- }
- return (PyObject *)ret;
- }
- """
- import Instant, numpy
- ext = Instant.Instant()
- ext.create_extension(code=s, headers=["numpy/arrayobject.h"],
- include_dirs=[numpy.get_include()],
- init_code='import_array();', module="test2b_ext")
- import test2b_ext
- a = numpy.arange(1000)
- b = numpy.arange(1000)
- d = test2b_ext.add(a,b)
-
-Except perhaps for the dependence on SWIG, Instant is a
-straightforward utility for writing extension modules.
-
-
-PyInline
---------
-
-This is a much older module that allows automatic building of
-extension modules so that C-code can be included with Python code.
-It's latest release (version 0.03) was in 2001, and it appears that it
-is not being updated.
-
-
PyFort
------