With this change it is now possible to use np.sin(df.x) in a sequence and it will use the C++<cmath> function sin to calculate sin properly.
C++ and numpy sometimes use different function names - this layer will take care of that for most functions.
Some other minor changes went in too. But one thing to watch out for is that hep_tables can't deal with np.atan2(seq1, seq2) - that will cause undefined behavior. If you are using hl_tables that will prevent this from happening and handle the calculation correctly.
With this change it is now possible to use
np.sin(df.x)
in a sequence and it will use theC++
<cmath>
functionsin
to calculate sin properly.C++
andnumpy
sometimes use different function names - this layer will take care of that for most functions.Some other minor changes went in too. But one thing to watch out for is that
hep_tables
can't deal withnp.atan2(seq1, seq2)
- that will cause undefined behavior. If you are usinghl_tables
that will prevent this from happening and handle the calculation correctly.Fixes #25