diff --git a/.gitignore b/.gitignore index 9c2126e..7549ca4 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ src/* !src/*.cpp !src/*.hpp !src/*.py +!src/Doxyfile diff --git a/doc/html/bc_s.png b/doc/html/bc_s.png new file mode 100644 index 0000000..224b29a Binary files /dev/null and b/doc/html/bc_s.png differ diff --git a/doc/html/bc_sd.png b/doc/html/bc_sd.png new file mode 100644 index 0000000..31ca888 Binary files /dev/null and b/doc/html/bc_sd.png differ diff --git a/doc/html/bdwn.png b/doc/html/bdwn.png new file mode 100644 index 0000000..940a0b9 Binary files /dev/null and b/doc/html/bdwn.png differ diff --git a/doc/html/bug.html b/doc/html/bug.html new file mode 100644 index 0000000..ed8264e --- /dev/null +++ b/doc/html/bug.html @@ -0,0 +1,98 @@ + + +
+ + + + +|
+ FYS3150: Project 2
+
+ |
+
|
+ FYS3150: Project 2
+
+ |
+
+Files | |
| file | jacobi.hpp [code] |
| Function prototypes for the jacobi rotation algorithm. | |
| file | matrix.hpp [code] |
| Function prototypes for creating tridiagonal matrices. | |
| file | utils.hpp [code] |
| Function prototypes and macros that are useful. | |
|
+ FYS3150: Project 2
+
+ |
+
| ▼ include | |
| jacobi.hpp | Function prototypes for the jacobi rotation algorithm |
| matrix.hpp | Function prototypes for creating tridiagonal matrices |
| utils.hpp | Function prototypes and macros that are useful |
| jacobi.cpp | Implementation of the jacobi rotation method |
| matrix.cpp | Function prototypes for creating tridiagonal matrices |
| test_suite.cpp | Test suite for project 2 |
| utils.cpp | Implementation of the utils |
|
+ FYS3150: Project 2
+
+ |
+
|
+ FYS3150: Project 2
+
+ |
+
|
+ FYS3150: Project 2
+
+ |
+
|
+ FYS3150: Project 2
+
+ |
+
|
+ FYS3150: Project 2
+
+ |
+
Implementation of the jacobi rotation method. +More...
++Functions | |
| void | jacobi_rotate (arma::mat &A, arma::mat &R, int k, int l) |
| Computes a single rotation. | |
| 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. | |
Implementation of the jacobi rotation method.
+ +| 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.
+Description
+| A | The initial matrix to be solved |
| eps | Tolerance |
| eigenvalues | A vector that will contain the computed eigenvalues |
| eigenvectors | A Matrix that will contain the computed eigenvectors |
| maxiter | The max number of iterations allowed |
| iterations | To keep track of how many iterations the algorithm used |
| converged | Tells the user if the algorithm has converged |
| void jacobi_rotate | +( | +arma::mat & | +A, | +
| + | + | arma::mat & | +R, | +
| + | + | int | +k, | +
| + | + | int | +l | +
| + | ) | ++ |
Computes a single rotation.
+Description
+| A | Matrix A (m) |
| R | The rotation matrix R (m) |
| k | Index of the row with the element of largest absolute value |
| l | Index of the column with the element of largest absolute value |
|
+ FYS3150: Project 2
+
+ |
+
Function prototypes for the jacobi rotation algorithm. +More...
+#include <armadillo>Go to the source code of this file.
++Functions | |
| void | jacobi_rotate (arma::mat &A, arma::mat &R, int k, int l) |
| Computes a single rotation. | |
| 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. | |
Function prototypes for the jacobi rotation algorithm.
+ +| 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.
+Description
+| A | The initial matrix to be solved |
| eps | Tolerance |
| eigenvalues | A vector that will contain the computed eigenvalues |
| eigenvectors | A Matrix that will contain the computed eigenvectors |
| maxiter | The max number of iterations allowed |
| iterations | To keep track of how many iterations the algorithm used |
| converged | Tells the user if the algorithm has converged |
| void jacobi_rotate | +( | +arma::mat & | +A, | +
| + | + | arma::mat & | +R, | +
| + | + | int | +k, | +
| + | + | int | +l | +
| + | ) | ++ |
Computes a single rotation.
+Description
+| A | Matrix A (m) |
| R | The rotation matrix R (m) |
| k | Index of the row with the element of largest absolute value |
| l | Index of the column with the element of largest absolute value |
|
+ FYS3150: Project 2
+
+ |
+