*** empty log message ***

This commit is contained in:
jiri 2005-01-31 13:43:38 +00:00
parent a180734533
commit 46d841aabf
1 changed files with 9 additions and 0 deletions

9
davidson.h Normal file
View File

@ -0,0 +1,9 @@
//Davidson diagonalization of real symmetric matrix
//matrix can be any class which provides nrows(), diagonalof() and operator*(const NRVec<T>) methods
//does not even have to be explicitly stored - direct CI
//n<0 highest eigenvalues, n>0 lowest eigenvalues
template <class T, class matrix>
extern void davidson(const matrix &a, NRVec<T> *vecs /*input-output*/, T *vals, const int n=1, const double eps=1e-10);