Hi Alberto,
For what it’s worth, I cannot replicate the behavior you describe.
Your first example prints:
a_int: [3.90625000e-07 3.90625000e-03 1.56250000e-02 3.51562500e-02
6.24875006e-02] dtype:float64 type:<class 'numpy.ndarray'>
b_int: 0 type:<class 'int'>
XX1: [0.0025 0.25 0.5 0.75 0.9999] dtype:float64 type:<class 'numpy.ndarray'>
With numba: [7.07150889 2.4470088 1.6399837 1.0224987 0.0185825 ]
With numpy: [7.07150889 2.4470088 1.6399837 1.0224987 0.0185825 ]
And the second simplified one:
a_int: [1 2 3 4] dtype:int32 type:<class 'numpy.ndarray'>
b_int: 0 type:<class 'int'>
[-1. -0.70710678 -0.57735027 -0.5 ]
[-1. -0.70710678 -0.57735027 -0.5 ]
This was done using:
Numba 0.53.1
Numpy 1.20.3
Python 3.9.2
Are you perhaps using an older version of Numba?
Regards,
Rutger