Skip to content

using incorrect erf #357

Description

@jharlow-intel

black_scholes_dpnp.py calls np.erf(...), but dpnp.erf was removed from the top-level namespace.

Fix: import erf from dpnp.scipy.special and
call the bare erf(...).

import dpnp as np
from dpnp.scipy.special import erf
...
d1 = 0.5 + 0.5 * erf(w1)
d2 = 0.5 + 0.5 * erf(w2)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions