ergo
|
Defined namespace eigvec containing functions for computing largest eigenvalues and corresponding eigenvectors using the power method or the Lanczos method. More...
#include "matrix_utilities.h"
#include "integral_matrix_wrappers.h"
#include "SizesAndBlocks.h"
#include "output.h"
#include <iostream>
#include <string.h>
#include "LanczosSeveralLargestEig.h"
Go to the source code of this file.
Namespaces | |
eigvec | |
Functions | |
template<typename Treal , typename MatrixType , typename VectorType > | |
Treal | eigvec::compute_rayleigh_quotient (const MatrixType &A, const VectorType &eigVec) |
Get Rayleigh quotient: A = (y'Ay)/(y'y), y = eigVecPtr. More... | |
template<typename Treal , typename MatrixType , typename VectorType > | |
void | eigvec::lanczos_method (const MatrixType &A, std::vector< Treal > &eigVal, std::vector< VectorType > &eigVec, int number_of_eigenvalues, const Treal TOL, std::vector< int > &num_iter, int maxit=200, bool do_deflation=false) |
Use Lanzcos method for computing eigenvectors. More... | |
template<typename Treal , typename MatrixType , typename VectorType > | |
void | eigvec::power_method (const MatrixType &A, Treal &eigVal, VectorType &eigVec, const Treal TOL, int &num_iter, int maxit=200) |
Use power method for computing eigenvectors. More... | |
template<typename Treal , typename MatrixType , typename VectorType > | |
int | eigvec::computeEigenvectors (const MatrixType &A, Treal tol, std::vector< Treal > &eigVal, std::vector< VectorType > &eigVec, int number_of_eigenvalues_to_compute, std::string method, std::vector< int > &num_iter, int maxit=200, bool do_deflation=false) |
Function for choosing method for computing eigenvectors. More... | |
Defined namespace eigvec containing functions for computing largest eigenvalues and corresponding eigenvectors using the power method or the Lanczos method.
See function computeEigenvectors.