|
1 | | -using IntervalArithmetic |
2 | 1 | """ |
3 | 2 | Preconditions the matrix A and b with the inverse of mid(A) |
4 | 3 | """ |
@@ -81,16 +80,14 @@ function gauss_elimination_interval(A::AbstractMatrix, b::AbstractArray; precond |
81 | 80 | n = size(A, 1) |
82 | 81 | x = fill(-1e16..1e16, n) |
83 | 82 |
|
84 | | - x = gauss_seidel_interval!(x, A, b, precondition=precondition) |
| 83 | + x = gauss_elimination_interval!(x, A, b, precondition=precondition) |
85 | 84 |
|
86 | 85 | return x |
87 | 86 | end |
88 | 87 | """ |
89 | | -Iteratively solves the system of interval linear |
90 | | -equations and returns the solution set. Uses the |
91 | | -Gauss-Seidel method (Hansen-Sengupta version) to solve the system. |
92 | | -Keyword `precondition` to turn preconditioning off. |
93 | | -Eldon Hansen and G. William Walster : Global Optimization Using Interval Analysis - Chapter 5 - Page 115 |
| 88 | +Solves the system of linear equations using Gaussian Elimination, |
| 89 | +with (or without) preconditioning. (kwarg - `precondition`) |
| 90 | +Luc Jaulin, Michel Kieffer, Olivier Didrit and Eric Walter - Applied Interval Analysis - Page 72 |
94 | 91 | """ |
95 | 92 | function gauss_elimination_interval!(x::AbstractArray, a::AbstractMatrix, b::AbstractArray; precondition=true) |
96 | 93 |
|
@@ -132,16 +129,12 @@ function gauss_elimination_interval1(A::AbstractMatrix, b::AbstractArray; precon |
132 | 129 | n = size(A, 1) |
133 | 130 | x = fill(-1e16..1e16, n) |
134 | 131 |
|
135 | | - x = gauss_seidel_interval!(x, A, b, precondition=precondition) |
| 132 | + x = gauss_elimination_interval1!(x, A, b, precondition=precondition) |
136 | 133 |
|
137 | 134 | return x |
138 | 135 | end |
139 | 136 | """ |
140 | | -Iteratively solves the system of interval linear |
141 | | -equations and returns the solution set. Uses the |
142 | | -Gauss-Seidel method (Hansen-Sengupta version) to solve the system. |
143 | | -Keyword `precondition` to turn preconditioning off. |
144 | | -Eldon Hansen and G. William Walster : Global Optimization Using Interval Analysis - Chapter 5 - Page 115 |
| 137 | +Using `Base.\`` |
145 | 138 | """ |
146 | 139 | function gauss_elimination_interval1!(x::AbstractArray, a::AbstractMatrix, b::AbstractArray; precondition=true) |
147 | 140 |
|
|
0 commit comments