[Pyublas] to python conversion question

Andreas Klöckner lists at informa.tiker.net
Mon Jan 26 13:44:25 PST 2009


On Montag 26 Januar 2009, Neal Becker wrote:
> What happens if I pass a vector of a different element type than the c++
> code expects?  For example, what if:
>
> F (numpy_vector<double>)
>
> is called from python with zeros (10, dtype=int)?  How about other
> conversions (double vs complex?)
>
> What I'd like to happen is I'd get an error, and that if I wanted I could
> overload F:
>
> F (numpy_vector<int>)...

Both wishes should be fulfilled by current code. If not, that's a bug.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20090126/5e5ea136/attachment.pgp>


More information about the Pyublas mailing list