<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><font class="Apple-style-span" size="4"><br>
<br></font><div><div><font class="Apple-style-span" size="4">On Apr 4, 2013, at 2:56 PM, James Stroud wrote:</font></div><blockquote type="cite"><div><font class="Apple-style-span" size="4">Hi Luc,<br><br>On Apr 4, 2013, at 2:34 PM, Luc Bourhis wrote:</font><blockquote type="cite"><font class="Apple-style-span" size="4">Ideally, I would need to know how to get at those types on the C++ side...<br></font></blockquote><blockquote type="cite"><font class="Apple-style-span" size="4"><br></font></blockquote><blockquote type="cite"><font class="Apple-style-span" size="4">Best wishes,<br></font></blockquote><blockquote type="cite"><font class="Apple-style-span" size="4"><br></font></blockquote><blockquote type="cite"><font class="Apple-style-span" size="4">Luc<br></font></blockquote><font class="Apple-style-span" size="4"><br><br>I think the relevant part of the numpy documentation is here:<br><br> &nbsp;<a href="http://docs.scipy.org/doc/numpy/reference/c-api.array.html#dealing-with-types">http://docs.scipy.org/doc/numpy/reference/c-api.array.html#dealing-with-types</a><br></font></div></blockquote></div><font class="Apple-style-span" size="4"><br></font><div><font class="Apple-style-span" size="4"><br></font></div><div><font class="Apple-style-span" size="4">This may be more generally useful:</font></div><div><font class="Apple-style-span" size="4"><br></font></div><div><font class="Apple-style-span" size="4">&nbsp; &nbsp; <a href="http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_DTYPE">http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_DTYPE</a></font></div><div><font class="Apple-style-span" size="4"><br></font></div><div><font class="Apple-style-span" size="4">The relevant fields of the returned&nbsp;PyArray_Descr seem to be kind, byteorder, and elsize.</font></div><div><font class="Apple-style-span" size="4"><br></font></div><div><font class="Apple-style-span" size="4">James</font></div><div><br></div></body></html>