pythran Questions
2
Solved
Pythran is a Python-to-C++ compiler for a subset of Python that
includes partial numpy support. It acts a little like Numba and
Cython—you annotate a function’s arguments, and then it takes ove...
Hoopes asked 5/8, 2019 at 9:47
1
The task by example:
data = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9])
idx = np.array([2, 0, 1, 1, 2, 0, 1, 1, 2])
Expected result:
binned = np.array([2, 6, 3, 4, 7, 8, 1, 5, 9])
Constraints:
Sh...
1
Solved
I try to use Pythran in a function that needs an int array and for the second arg a dict with tuples of ints as keys and an int as value:
myarray = np.array([[0, 0], [0, 1], [1, 1],
[1, 2], [2, 2...
Seedbed asked 6/2, 2016 at 10:55
1
© 2022 - 2024 — McMap. All rights reserved.