New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix Cosine is Slooooooow! #125
Comments
cosm is equivalent to 0.5*(expm(iA)+expm(-iA)) |
Aah I see, so a little improvement could be achieved by
|
other way is to use expoKit (Cpp version) but there is some licence limitation (ACM) |
For real arguments, it could be done as Nelson:
Regarding the implementation of Scilab:
Octave:
Julia:
|
from my memory, scilab or nsp uses expoKit. for real, I will continue to use current code. |
It seems, that in Scilab you did it by yourself a long time ago ;-), cf. here expoKit is not mentioned in the Copyright/License header !? |
speed optimization about expm using blas, lapack (mkl on windows). previous version on Windows:
New version using MKL on windows
for real numbers, expm is very fast |
expm (complex numbers) will be more optimized in a next version. |
About cosm, on overloading branch with cosm updated: Elapsed time is 1.482141 seconds. previous version build 1068: Elapsed time is 2.245938 seconds |
To Reproduce
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: