[SciPy-User] Problem with passing a 2D Numpy array in the C code by weave.inline
Thu Dec 3 07:32:14 CST 2009
I use the following code, and it works.
inline(code,['arr'], verbose = 1, compiler = 'gcc', type_converters =
But it works in the arr(i,j) syntax.
Is there any way to use the original C syntax ( arr[i][j] ) ?
2009/12/3 Jose Gomez-Dans <email@example.com>
> 2009/12/3 Steven Nien <firstname.lastname@example.org>
>> Thanks, but it didn't work (with error message).
> Are you sure you are not hitting this bug?
> I have applied the patch and your code works here:
> *$ python test_weave.py
> <weave: compiling>
> Compiling code...
> finished compiling (sec): 1.45934510231
> [[ 1. 0. 0.]
> [ 0. 0. 0.]]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User