There were previous attempts to integrate the https://github.com/DynareJulia/GeneralizedSylvesterSolver.jl but there was a bug in its usage.
The suspicon was that it was doing a loop and calling the sylvester solver inplace, but since the solver works "inplace" it might require adding new buffers or zeroing out buffers between calls in the iteration.
To do this:
If it is working well then
If it seems to win in the benchmarks version MatrixEquations and unit tetss pass, then leave that change in the toggle.
There were previous attempts to integrate the https://github.com/DynareJulia/GeneralizedSylvesterSolver.jl but there was a bug in its usage.
The suspicon was that it was doing a loop and calling the sylvester solver inplace, but since the solver works "inplace" it might require adding new buffers or zeroing out buffers between calls in the iteration.
To do this:
buff.Eor something like that?buff.Eor whatever before calling the buffers.n_pand the copy it back over top prior to the call to thegeneralized_sylvester_solverIf it is working well then
:MatrixEquationsto:GeneralizedSylvesterSolverin https://github.com/HighDimensionalEconLab/DifferentiableStateSpaceModels.jl/blob/v0.4.19/src/types.jl#L372If it seems to win in the benchmarks version
MatrixEquationsand unit tetss pass, then leave that change in the toggle.