Skip to content

Add a wrapper using the default parameters#52

Open
aabacchus wants to merge 1 commit into
DynareJulia:mainfrom
aabacchus:main
Open

Add a wrapper using the default parameters#52
aabacchus wants to merge 1 commit into
DynareJulia:mainfrom
aabacchus:main

Conversation

@aabacchus

Copy link
Copy Markdown

This is a great package, which I'm dropping in to replace eigen!(Hermitian(H)), so it seems convenient to provide a wrapper that uses the same defaults provided by LinearAlgebra, which I did here just for syevr!. There are a few places the default could be implemented:

  • another method for eigen!
  • another method for syevr!, like LinearAlgebra does for syevr!(jobz, A) = syevr!(jobz, 'A', 'U', A, 0.0, 0.0, 0, 0, -1.0)
  • default parameter values for your decompose! wrapper

I chose the first because it gives the most simple interface: now I use eigen!(ws, Hermitian(H)). It's nicer than Eigen(LinearAlgebra.sorteig!(LAPACK.syevr!(ws, 'V', 'A', 'U', H, 0.0, 0.0, 0, 0, -1.0)...)...)

What do you think? If you agree, then this can be done for some of the other algorithms and the documentation updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant