gordonwatts / hep_tables

Prototyping Hierarchical data, with servicex as a backend
MIT License
2 stars 0 forks source link

Adding `numpy` function translations. #34

Closed gordonwatts closed 4 years ago

gordonwatts commented 4 years ago

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.

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.

Fixes #25