-
Notifications
You must be signed in to change notification settings - Fork 24
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
Unclear how to use pre-computed factorization #101
Comments
I also found out that the function mul!(y::StridedVector{T} where T, A::ToeplitzMatrices.ToeplitzFactorization, x::StridedVector{T} where T, α::Number, β::Number) @ ToeplitzMatrices ~/.julia/packages/ToeplitzMatrices/5gW1c/src/linearalgebra.jl:42 is not thread-safe (which of course nobody claimed it was). |
I'm sure a PR to make it thread-safe would be merged. |
The The use-case is niche (and this That said, here we go: #103 |
The README suggests that when using the same matrix multiple times, precomputing the factorization (which uses FFT) can be useful for better performance. However, using this factorization directly does not seem to be supported:
I tried to look at how the library itself calls the
mul!
methods but it's weird (I don't understand, for example, what exactly alpha and beta are doing).It seems to work when passing
1.0
for alpha and beta, but it feels weird to use it without understand what's going on.How does one use this? Maybe it could be documented in the README or elsewhere?
Another thing I'm confused about is whether the FFT functionality actually depends on something like FFTW being
using
'ed. To me it seems right now that addingToeplitzMatrices
to a project automatically includes FFTW through the DSP dependency. So while it may be possible to swap out FFTW for another library (I don't know if it is), it does not seem to be the case that a user needs to opt-in to the FFT functionality by making such a choice. Rather, FFTW is the default choice added as a dependency by ToeplitzMatrices and used from the beginning. If this is true, the README seems a bit unclearI read this as saying the FFT functionality is opt-in.
The text was updated successfully, but these errors were encountered: