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

Allow lowering constants of ndt/xnd #8

Open
saulshanabrook opened this issue Jul 29, 2018 · 0 comments
Open

Allow lowering constants of ndt/xnd #8

saulshanabrook opened this issue Jul 29, 2018 · 0 comments

Comments

@saulshanabrook
Copy link
Member

Users should be able to add constant xnd/ndt types, like this:

t = ndtypes.ndt("float64")

@numba.njit
def hi():
    return t
  • Add as dummy types ref
  • replacing str in wrapper with these constant types

However, this might be more trouble than it's worth, not supported by numba (see). So instead we could add lower_constant to python or C types, and serialize them from Python. Maybe that is most straightforward.

@saulshanabrook saulshanabrook modified the milestone: Usable Jul 29, 2018
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