Skip to content

Commit 29a05b4

Browse files
authored
throw error if hbr is used with a non-H-matrix (#103)
* throw error if hbr is used with a non-H-matrix * updated Project.toml
1 parent ca141fa commit 29a05b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "IntervalLinearAlgebra"
22
uuid = "92cbe1ac-9c24-436b-b0c9-5f7317aedcd5"
33
authors = ["Luca Ferranti"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
CommonSolve = "38540f10-b2f7-11e9-35d8-d573e4eb0ff2"

src/linear_systems/enclosures.jl

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function (hbr::HansenBliekRohn)(A::AbstractMatrix{T},
6969

7070
cert || @warn "Could not find a verified enclosure of ⟨A⟩⁻¹"
7171

72+
all(sum(compA_inv; dims=2) .> 0) || throw(ArgumentError("applying Hanben-Bliek-Rohn to a non-H-matrix."))
7273
u = compA_inv * mag.(b)
7374
d = diag(compA_inv)
7475

0 commit comments

Comments
 (0)