We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
numba.typed.List
numba.typed.Dict
Right now, the docs for numba.typed.Dict say that:
Acceptable key/value types include but are not limited to: unicode strings, arrays, scalars, tuples.
But there are no examples of how to actually use it with tuples! I couldn't find how to construct a numba "tuple" class -- i had hoped that:
numba.typed.Dict.empty( key_type=(numba.types.unicode_type, numba.types.int32), value_type=numba.types.float32, )
would work, but that fails at runtime (constructing the dictionary works fine, but actually inserting anything into it fails).
I ended up just using numba.typeof instead, but it'd be nice to have an example in the documentation!
numba.typeof
(Thanks for this great feature BTW! This massively expands the places where I can use Numba!)
The text was updated successfully, but these errors were encountered:
xref #3349 and #4497
Sorry, something went wrong.
No branches or pull requests
Feature request
Right now, the docs for
numba.typed.Dict
say that:But there are no examples of how to actually use it with tuples! I couldn't find how to construct a numba "tuple" class -- i had hoped that:
would work, but that fails at runtime (constructing the dictionary works fine, but actually inserting anything into it fails).
I ended up just using
numba.typeof
instead, but it'd be nice to have an example in the documentation!(Thanks for this great feature BTW! This massively expands the places where I can use Numba!)
The text was updated successfully, but these errors were encountered: