<!DOCTYPE html><html><head><style type="text/css">body { font-family:'Ubuntu'; font-size:12px}</style></head><body>
<div>Hi,</div><div><br></div><div>I was wondering if it is possible to process (in if statement - check if the given value is NaN) numpy NaN value inside the weave.inline c code.</div><div><br></div><div><br>testcode = '''<br></div><div>if (test(0)) {<br>        return_val = test(0);<br>}<br>'''<br></div><div><br></div><div>err = weave.inline(testcode,<br> ['test'],<br>                   type_converters = converters.blitz, force = 0, verbose = 1)<br><br></div><div><br></div><div>with test(0) = nan returns err = nan correctly, but I don't know how to check the nan value inside the c inline c code. Is there any way I can get similar functionality as isnan?</div><div><br></div><div>Thank you,</div><div>Joon</div><div id="M2Signature"><div>-- </div><div><div><font face="Courier New"><br></font></div></div></div></body></html>