Skip to content

Commit b532a27

Browse files
committed
Add SparseArrays extension
1 parent c293866 commit b532a27

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ DiffRules = "b552c78f-8df3-52c6-915a-8e097449b14b"
1515
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
1616
IntervalSets = "8197267c-284f-5f27-9208-e0e47529a953"
1717
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
18+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1819

1920
[extensions]
2021
IntervalArithmeticDiffRulesExt = "DiffRules"
2122
IntervalArithmeticForwardDiffExt = "ForwardDiff"
2223
IntervalArithmeticIntervalSetsExt = "IntervalSets"
2324
IntervalArithmeticRecipesBaseExt = "RecipesBase"
25+
IntervalArithmeticSparseArraysExt = "SparseArrays"
2426

2527
[compat]
2628
CRlibm = "1.0.2"
@@ -32,4 +34,5 @@ MacroTools = "0.5"
3234
OpenBLASConsistentFPCSR_jll = "0.3.29"
3335
RecipesBase = "1"
3436
RoundingEmulator = "0.2"
37+
SparseArrays = "1.9.0"
3538
julia = "1.9"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module IntervalArithmeticSparseArraysExt
2+
3+
using IntervalArithmetic
4+
import SparseArrays
5+
6+
SparseArrays._iszero(x::Interval) = isthinzero(x)
7+
8+
SparseArrays._isnotzero(x::Interval) = !isthinzero(x)
9+
10+
end

0 commit comments

Comments
 (0)