[cctbxbb] flex and numpy caveats

James Stroud xtald00d at gmail.com
Thu Apr 4 14:08:58 PDT 2013



On Apr 4, 2013, at 2:56 PM, James Stroud wrote:
> Hi Luc,
> 
> On Apr 4, 2013, at 2:34 PM, Luc Bourhis wrote:
>> 
>> Ideally, I would need to know how to get at those types on the C++ side...
>> 
>> Best wishes,
>> 
>> Luc
> 
> 
> I think the relevant part of the numpy documentation is here:
> 
>  http://docs.scipy.org/doc/numpy/reference/c-api.array.html#dealing-with-types


This may be more generally useful:

    http://docs.scipy.org/doc/numpy/reference/c-api.array.html#PyArray_DTYPE

The relevant fields of the returned PyArray_Descr seem to be kind, byteorder, and elsize.

James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20130404/6aed7e13/attachment.htm>


More information about the cctbxbb mailing list