Re: Numpy-discussion digest, Vol 1 #7 - 1 msg

Feb. 4, 2000
8:49 p.m.
I have some experience with SWIG but it is not my favorite method to use Numerical Python with C, since you have so little control over how things get allocated. Your problem is probably due to the fact that you do not run import_array() in the module header. There is a typemap in SWIG that let's you put commands to run at module initialization. Try this in your *.i file. %init %{ import_array(); %} This may help. Best, Travis
9175
Age (days ago)
9175
Last active (days ago)
0 comments
1 participants
participants (1)
-
Travis Oliphant