Is there some already existing implementation of “numpy.gradient” and “numpy.unwrap” in ROOT C++ ?

I couldn’t find any and already implemented unwrap on my own.

Best regards,

Maybe @moneta can think of something ROOT provides?

We don’t have the equivalent of numpy in C++. What we have is the RTensor class in TMVA, see the reference doc.
Then you can use standard algorithm, like std::transform or std::for_each where you pass your function with the operation you want to define.
For gradient, it also exists something similar like std::adjacent_difference.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.