No need for `# pythran import numpy as np`

Issue #6 resolved
Pierre Augier created an issue
import numpy as np

from fluidpythran import boost

# pythran import numpy as np

@boost
def func(a: float, b: float):
    return (a * np.log(b)).max()

The line # pythran import numpy as np is needed.

fluidpythran should be able to deduce from the code of the pythranized function which imports need to be added in the Pythran file.

Comments (4)

  1. Log in to comment