Skip to content

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

@b45ch1

Description

@b45ch1

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions