From e5431ebce838e2590154f38804b4113751f55cd7 Mon Sep 17 00:00:00 2001 From: Cory Date: Tue, 26 Sep 2023 12:17:04 +0200 Subject: [PATCH] Update docs --- doc/html/main_8cpp.html | 5 ++++- doc/html/matrix_8hpp.html | 1 + doc/html/matrix_8hpp_source.html | 31 ++++++++++++++++--------------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/doc/html/main_8cpp.html b/doc/html/main_8cpp.html index 9e64142..03970df 100644 --- a/doc/html/main_8cpp.html +++ b/doc/html/main_8cpp.html @@ -79,7 +79,10 @@ $(function() { More...

#include <cassert>
#include <cmath>
+#include <ctime>
#include <iostream>
+#include <omp.h>
+#include <ostream>
#include "utils.hpp"
#include "matrix.hpp"
#include "jacobi.hpp"
@@ -101,7 +104,7 @@ int main ()

Detailed Description

Main program for Project 2.

-

The program performs the Jacobi rotation method. The size of the matrix, and number of transformations performed are written to file. Eigenvector correstonding to the 3 smallest eigenvalues for matrices of size 6x6 and 100x100 are written to file.

+

The program performs the Jacobi rotation method. The size of the matrix, and number of transformations performed are written to file. Eigenvector corresponding to the 3 smallest eigenvalues for matrices of size 6x6 and 100x100 are written to file.

Author
Cory Alexander Balaton (coryab)
Janita Ovidie Sandtrøen Willumsen (janitaws)
diff --git a/doc/html/matrix_8hpp.html b/doc/html/matrix_8hpp.html index 2063274..cb22542 100644 --- a/doc/html/matrix_8hpp.html +++ b/doc/html/matrix_8hpp.html @@ -82,6 +82,7 @@ $(function() {

Function prototypes for creating tridiagonal matrices. More...

#include <armadillo>
+#include <omp.h>

Go to the source code of this file.

diff --git a/doc/html/matrix_8hpp_source.html b/doc/html/matrix_8hpp_source.html index 177478b..cdf6f27 100644 --- a/doc/html/matrix_8hpp_source.html +++ b/doc/html/matrix_8hpp_source.html @@ -81,22 +81,23 @@ $(function() {
11#define __MATRIX__
12
13#include <armadillo>
-
14
-
28arma::mat create_tridiagonal(
-
29 const arma::vec& a,
-
30 const arma::vec& d,
-
31 const arma::vec& e);
-
32
-
47arma::mat create_tridiagonal(int n, double a, double d, double e);
-
48
-
60arma::mat create_symmetric_tridiagonal(int n, double a, double d);
-
61
-
75double max_offdiag_symmetric(arma::mat& A, int& k, int& l);
-
76
-
77#endif
-
arma::mat create_symmetric_tridiagonal(int n, double a, double d)
Create a symmetric tridiagonal matrix.
Definition: matrix.cpp:44
+
14#include <omp.h>
+
15
+
29arma::mat create_tridiagonal(
+
30 const arma::vec& a,
+
31 const arma::vec& d,
+
32 const arma::vec& e);
+
33
+
48arma::mat create_tridiagonal(int n, double a, double d, double e);
+
49
+
61arma::mat create_symmetric_tridiagonal(int n, double a, double d);
+
62
+
76double max_offdiag_symmetric(arma::mat& A, int& k, int& l);
+
77
+
78#endif
+
arma::mat create_symmetric_tridiagonal(int n, double a, double d)
Create a symmetric tridiagonal matrix.
Definition: matrix.cpp:45
arma::mat create_tridiagonal(const arma::vec &a, const arma::vec &d, const arma::vec &e)
Create a tridiagonal matrix.
Definition: matrix.cpp:12
-
double max_offdiag_symmetric(arma::mat &A, int &k, int &l)
Find the off-diagonal element with the largest absolute value.
Definition: matrix.cpp:49
+
double max_offdiag_symmetric(arma::mat &A, int &k, int &l)
Find the off-diagonal element with the largest absolute value.
Definition: matrix.cpp:50