[Numpy-discussion] SWIGed function does not like my boolean array
matthieu.brucher at gmail.com
Wed Nov 7 11:23:04 EST 2007
> I don't understand. I'm thinking of most math functions in the
> C-library. In C a boolean is just an integer of 0 or 1 (quasi, by
> Could you explain what you mean ?
In C++, bool is a new type that has two values, true and false. If you add
true and true, it is still true, and not 2. In C, everything that is not 0
is true, not in C++.
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion