From 280bf6f6ba2c6ad6d4f470573ca23d72541813c1 Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Tue, 4 Sep 2007 19:07:55 +0000 Subject: Added basic SWIG wrapper generator (use ./configure --enable-swig etc) --- swig/test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 swig/test.py (limited to 'swig/test.py') diff --git a/swig/test.py b/swig/test.py new file mode 100644 index 0000000..e98755d --- /dev/null +++ b/swig/test.py @@ -0,0 +1,18 @@ +#!/usr/bin/python + +import xtract + +len = 5 + +a = xtract.new_floatArray(len) + +for i in range(0, len): + xtract.floatArray_setitem(a, i, 2*i) + +retval,result = xtract.xtract_mean(a,len,None) + +print result + + + + -- cgit v1.2.3