Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiplying Python float to numpy.array of adouble works but fails with a numpy.float64 #9

Open
b45ch1 opened this issue Aug 21, 2009 · 0 comments

Comments

@b45ch1
Copy link
Owner

b45ch1 commented Aug 21, 2009

Problem description:
x = numpy.array([1.,2.])
ay = numpy.array([adouble(3.), adouble(4.)])

then:
ay * x[0] # NOT OK!
This is not a bug of pyadolc but a bug of numpy (http://projects.scipy.org/numpy/ticket/1136).

WORKAROUND:
x[0] * ay # OK!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant