Closed IruNikZe closed 4 months ago
A minor refactoring is using x * x
rather than x ** 2
because it does not involve the power functions which makes it faster.
Of course! 👍 Thanks for the quick response
Of course! 👍 Thanks for the quick response
Sure. I could also do a small release if you need this directly from the package or are you using this through a git install anyways?
I can use it via Git, that's fine by now 👨💻 Thanks for the offer 👍
It would be super awesome if this feature could be released :D Thank you for your work.
Hey @laarisyko, Please excuse, that we didn't release it right away. I am preparing everything right now.
This PR leverages NumPy's broadcasting to speed up the computation of the Kramers-Kronig-Relationship by making most of the computations happen at C-level rather than inside the
for
-loop that handles both odd and even case with an expensiveif
. Doing so would even allow for a simple Numba-compilation to speed up the computations even further (given it is available at runtime).It tackles this issue
Fixes #168