[SciPy-user] using with with blitz: errors

Fernando Perez Fernando.Perez at colorado.edu
Sat Dec 31 00:58:05 CST 2005

Evan Monroig wrote:
> Hi,
> I am trying to use weave to speed up my code with inline c++ code, but 
> I can't find any working sample.
> I found a very simple one [1] to return the trace of a matrix, but 
> I can't find how to incorporate the c++ code. I attached the compile 
> errors. I also tried to remove the "type_converters" parameter in inline 
> and change the array parentheses () into brackets [], then it compiles 
> but gives wrong results...
> I am running on Ubuntu with
> python2.4-scipy-core=0.3.2-2ubuntu1
> python2.4-scipy=0.3.2-3ubuntu2
> python2.4-numeric=23.8-4
> python2.4-numeric-ext=23.8-4
> blitz++=1:0.8-4 (just in case)
> gcc version is 4.0.2

This is your problem: only blitz 0.9 compiles with gcc4.  You need to download 
  the newer blitz, and put it by hand in the



> Any ideas?
> Evan
> [1] http://amath.colorado.edu/faculty/fperez/python/weave_examples.html

More information about the SciPy-user mailing list