[Numpy-discussion] masked ufuncs in C: on github

Matthieu Brucher matthieu.brucher@gmail....
Sat May 16 03:06:26 CDT 2009

2009/5/16 Robert Kern <robert.kern@gmail.com>:
> On Sat, May 16, 2009 at 03:02, Eric Firing <efiring@hawaii.edu> wrote:
>> Charles R Harris wrote:
>>> Here the if ... continue needs to follow the declaration:
>>>         if (*mp1) continue;
>>>         float in1 = *(float *)ip1;
>>>         float in2 = *(float *)ip2;
>>>         *(float *)op1 = f(in1, in2);
>> I was surprised to see the declarations inside the loop in the first
>> place (this certainly is not ANSI-C), and I was also pleasantly
>> surprised that letting them be after the conditional didn't seem to
>> bother the compiler at all.  Maybe that is a gcc extension.
> I believe they are a part of C99.

Exactly (so not supported by Visual Studio).

Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher

More information about the Numpy-discussion mailing list