[cctbxbb] controlling types over the C++/Python interface

David Waterman dgwaterman at gmail.com
Mon May 14 23:40:38 PDT 2012


Thanks for the tip-off! That does make sense. Is this documented anywhere,
as if so I didn't find it? Although no doubt I would have found out
eventually by experience.

Cheers,
David
On 15 May 2012 05:29, "Luc Bourhis" <luc_j_bourhis at mac.com> wrote:

> Hi David,
>
> Tuple as a common type for all sequence-type objects makes sense in Python
>
>
> Only for those sequences whose size is fixed at compile-time, i.e.
> af::tiny, af::small and any type derived from them, which at the moment is
> limited to scitbx::vec3 and scitbx::vec2 from the top of my head. If you
> return an array with a dynamic size, i.e. af::shared or af::versa, then it
> will be converted to scitbx.array_family.shared and
> scitbx.array_family.flex respectively.
>
> HtH,
>
> Luc
>
>
>
> _______________________________________________
> cctbxbb mailing list
> cctbxbb at phenix-online.org
> http://phenix-online.org/mailman/listinfo/cctbxbb
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20120515/48437044/attachment.htm>


More information about the cctbxbb mailing list