[Pyublas] to python conversion question
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part.
More information about the Pyublas