Loading...
Searching...
No Matches
jacobi.hpp
Go to the documentation of this file.
#ifndef __JACOBI__
#define __JACOBI__
#include <armadillo>
void jacobi_rotate(arma::mat& A, arma::mat& R, int k, int l);
void jacobi_eigensolver(const arma::mat& A,
double eps,
arma::vec& eigenvalues,
arma::mat& eigenvectors,
const int maxiter,
int& iterations,
bool& converged);
#endif
jacobi_rotate
void jacobi_rotate(arma::mat &A, arma::mat &R, int k, int l)
Computes a single rotation.
Definition: jacobi.cpp:17
jacobi_eigensolver
void jacobi_eigensolver(const arma::mat &A, double eps, arma::vec &eigenvalues, arma::mat &eigenvectors, const int maxiter, int &iterations, bool &converged)
Solves the eigenvalue problem using the jacobi rotation method.
Definition: jacobi.cpp:56