From 135dc738cd8a74376c6b4bb207b6652f8d5c0af4 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Thu, 25 Jun 2020 22:23:47 +0000 Subject: [PATCH] Documentation for a03558d7a665ffea5dcb5df12b8f10dd897483ee --- d1/dbe/lu__decomposition_8h.html | 4 +- ...108d43bd32c6fb3b3c158476c51ba7f_cgraph.map | 2 +- ...108d43bd32c6fb3b3c158476c51ba7f_cgraph.md5 | 2 +- ...108d43bd32c6fb3b3c158476c51ba7f_cgraph.svg | 2 +- d1/dbe/lu__decomposition_8h_source.html | 6 +- dd/d65/lu__decompose_8cpp.html | 47 +++++++++++- ...283886819c7c140a023582b7269e2d0_cgraph.map | 6 ++ ...283886819c7c140a023582b7269e2d0_cgraph.md5 | 1 + ...283886819c7c140a023582b7269e2d0_cgraph.svg | 73 +++++++++++++++++++ ...c04138a5bfe5d72780bb7e82a18e627_cgraph.map | 4 +- ...c04138a5bfe5d72780bb7e82a18e627_cgraph.md5 | 2 +- ...c04138a5bfe5d72780bb7e82a18e627_cgraph.svg | 4 +- ...38a5bfe5d72780bb7e82a18e627_cgraph_org.svg | 4 +- 13 files changed, 137 insertions(+), 20 deletions(-) create mode 100644 dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.map create mode 100644 dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.md5 create mode 100644 dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.svg diff --git a/d1/dbe/lu__decomposition_8h.html b/d1/dbe/lu__decomposition_8h.html index b79f486c8..846804e1d 100644 --- a/d1/dbe/lu__decomposition_8h.html +++ b/d1/dbe/lu__decomposition_8h.html @@ -131,7 +131,6 @@ Functions   template<typename T > double determinant_lu (const matrix< T > &A) - Compute determinant of an NxN square matrix using LU decomposition. Using LU decomposition, the determinant is given by the product of diagonal elements of matrices L and U. More...
 

Detailed Description

@@ -173,8 +172,7 @@ template<typename T >
- -

Compute determinant of an NxN square matrix using LU decomposition. Using LU decomposition, the determinant is given by the product of diagonal elements of matrices L and U.

+

Compute determinant of an NxN square matrix using LU decomposition. Using LU decomposition, the determinant is given by the product of diagonal elements of matrices L and U.

Template Parameters
diff --git a/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.map b/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.map index 376071840..5f467f9ac 100644 --- a/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.map +++ b/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.map @@ -1,5 +1,5 @@ - + diff --git a/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.md5 b/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.md5 index 470fcdea5..82d005793 100644 --- a/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.md5 +++ b/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.md5 @@ -1 +1 @@ -88a2ff7f08f53ee9aac3f59997d32991 \ No newline at end of file +03a1b12a7d83786d2ebf794af04f7f7c \ No newline at end of file diff --git a/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.svg b/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.svg index 86202f5fa..b8708c8ae 100644 --- a/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.svg +++ b/d1/dbe/lu__decomposition_8h_a3108d43bd32c6fb3b3c158476c51ba7f_cgraph.svg @@ -12,7 +12,7 @@ Node1 - + determinant_lu diff --git a/d1/dbe/lu__decomposition_8h_source.html b/d1/dbe/lu__decomposition_8h_source.html index 2b83f9d0b..e2d0b1d27 100644 --- a/d1/dbe/lu__decomposition_8h_source.html +++ b/d1/dbe/lu__decomposition_8h_source.html @@ -174,7 +174,7 @@ $(document).ready(function(){initNavTree('d1/dbe/lu__decomposition_8h_source.htm
78 }
79 
80 /**
-
81  * @brief Compute determinant of an NxN square matrix using LU decomposition.
+
81  * Compute determinant of an NxN square matrix using LU decomposition.
82  * Using LU decomposition, the determinant is given by the product of diagonal
83  * elements of matrices L and U.
84  *
@@ -220,7 +220,7 @@ $(document).ready(function(){initNavTree('d1/dbe/lu__decomposition_8h_source.htm
T cos(T... args)
#define EPSILON
system accuracy limit
Definition: brent_method_extrema.cpp:23
STL class.
-
void test2()
Test determinant computation using LU decomposition.
Definition: lu_decompose.cpp:66
+
void test2()
Definition: lu_decompose.cpp:66
T size(T... args)
int multiply(int x, int res[], int res_size)
Definition: power_for_huge_numbers.cpp:25
ll ans(ll n)
Definition: matrix_exponentiation.cpp:91
@@ -300,7 +300,7 @@ $(document).ready(function(){initNavTree('d1/dbe/lu__decomposition_8h_source.htm
int main()
Definition: power_for_huge_numbers.cpp:82
void prime_factorization(int num)
Definition: prime_factorization.cpp:40
int main()
Definition: sum_of_digits.cpp:68
-
double determinant_lu(const matrix< T > &A)
Compute determinant of an NxN square matrix using LU decomposition. Using LU decomposition,...
Definition: lu_decomposition.h:90
+
double determinant_lu(const matrix< T > &A)
Definition: lu_decomposition.h:90
T fixed(T... args)
Definition: realtime_stats.cpp:27
void test2()
Test function to find maxima for the function in the interval Expected result: .
Definition: golden_search_extrema.cpp:100
diff --git a/dd/d65/lu__decompose_8cpp.html b/dd/d65/lu__decompose_8cpp.html index f8705a3c1..91d8b744b 100644 --- a/dd/d65/lu__decompose_8cpp.html +++ b/dd/d65/lu__decompose_8cpp.html @@ -118,9 +118,7 @@ Functions
- - + @@ -269,6 +267,46 @@ Here is the call graph for this function: + + + +

◆ test2()

+ +
+
+
Tdatatype of input matrix - int, unsigned int, double, etc
 
void test1 ()
 
-void test2 ()
 Test determinant computation using LU decomposition.
void test2 ()
 
int main (int argc, char **argv)
 
+ + + + + + +
void test2 ()
+
+

Test determinant computation using LU decomposition

+
66  {
+
67  std::cout << "Determinant test 1...";
+
68  matrix<int> A1({{1, 2, 3}, {4, 9, 6}, {7, 8, 9}});
+
69  assert(determinant_lu(A1) == -48);
+
70  std::cout << "passed\n";
+
71 
+
72  std::cout << "Determinant test 2...";
+
73  matrix<int> A2({{1, 2, 3}, {4, 5, 6}, {7, 8, 9}});
+
74  assert(determinant_lu(A2) == 0);
+
75  std::cout << "passed\n";
+
76 
+
77  std::cout << "Determinant test 3...";
+
78  matrix<float> A3({{1.2, 2.3, 3.4}, {4.5, 5.6, 6.7}, {7.8, 8.9, 9.0}});
+
79  assert(determinant_lu(A3) == 3.63);
+
80  std::cout << "passed\n";
+
81 }
+
+Here is the call graph for this function:
+
+
+
+
+
@@ -277,7 +315,7 @@ Here is the call graph for this function:
mat_size
ll mat_size
Definition: matrix_exponentiation.cpp:45
std::clock_t
std::vector
STL class.
-
test2
void test2()
Test determinant computation using LU decomposition.
Definition: lu_decompose.cpp:66
+
test2
void test2()
Definition: lu_decompose.cpp:66
std::setfill
T setfill(T... args)
std::clock
T clock(T... args)
test1
void test1()
Definition: lu_decompose.cpp:36
@@ -287,6 +325,7 @@ Here is the call graph for this function:
lu_decomposition
int lu_decomposition(const matrix< T > &A, matrix< double > *L, matrix< double > *U)
Definition: lu_decomposition.h:29
std::endl
T endl(T... args)
std::left
T left(T... args)
+
determinant_lu
double determinant_lu(const matrix< T > &A)
Definition: lu_decomposition.h:90
std::time
T time(T... args)
std::setw
T setw(T... args)
diff --git a/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.map b/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.map new file mode 100644 index 000000000..32085a510 --- /dev/null +++ b/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.map @@ -0,0 +1,6 @@ + + + + + + diff --git a/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.md5 b/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.md5 new file mode 100644 index 000000000..305079ffd --- /dev/null +++ b/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.md5 @@ -0,0 +1 @@ +8a40425d293de2285ebeaa3f2f5065c2 \ No newline at end of file diff --git a/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.svg b/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.svg new file mode 100644 index 000000000..d4267881a --- /dev/null +++ b/dd/d65/lu__decompose_8cpp_a0283886819c7c140a023582b7269e2d0_cgraph.svg @@ -0,0 +1,73 @@ + + + + + + +test2 + + + +Node1 + + +test2 + + + + + +Node2 + + +determinant_lu + + + + + +Node1->Node2 + + + + + +Node3 + + +lu_decomposition + + + + + +Node2->Node3 + + + + + +Node4 + + +std::vector::size + + + + + +Node2->Node4 + + + + + +Node3->Node4 + + + + + diff --git a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.map b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.map index 21cb45947..262c206e5 100644 --- a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.map +++ b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.map @@ -2,11 +2,11 @@ - + - + diff --git a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.md5 b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.md5 index f9f8bfaa4..c38a6bc6c 100644 --- a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.md5 +++ b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.md5 @@ -1 +1 @@ -708b0f5e4e8a2dbf6f96d6654c60cba2 \ No newline at end of file +f6518ad8c15b1405e008bcb134a7bf37 \ No newline at end of file diff --git a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg index c3a18f929..298c378c7 100644 --- a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg +++ b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph.svg @@ -97,7 +97,7 @@ var sectionId = 'dynsection-1'; Node8 - + test2 @@ -187,7 +187,7 @@ var sectionId = 'dynsection-1'; Node9 - + determinant_lu diff --git a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph_org.svg b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph_org.svg index 88a7983e4..38b596f98 100644 --- a/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph_org.svg +++ b/dd/d65/lu__decompose_8cpp_a3c04138a5bfe5d72780bb7e82a18e627_cgraph_org.svg @@ -51,7 +51,7 @@ Node8 - + test2 @@ -141,7 +141,7 @@ Node9 - + determinant_lu