Skip to content

Commit 547bf0c

Browse files
Merge pull request SciML#813 from SciML/ChrisRackauckas-patch-1
Remove TriangularSolve dependency
2 parents 6a49ebe + 78a9a69 commit 547bf0c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ SciMLLogging = "a6db7da4-7206-11f0-1eab-35f2a5dbe1d1"
2727
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
2828
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
2929
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
30-
TriangularSolve = "d5829a12-d9aa-46ab-831f-fb7c9ab06edf"
3130
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
3231

3332
[weakdeps]
@@ -139,7 +138,6 @@ StableRNGs = "1.0"
139138
StaticArrays = "1.9"
140139
StaticArraysCore = "1.4.3"
141140
Test = "1.10"
142-
TriangularSolve = "0.2.1"
143141
UnPack = "1.0.2"
144142
Zygote = "0.7"
145143
blis_jll = "0.9.0"

ext/LinearSolveRecursiveFactorizationExt.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using LinearSolve: LinearSolve, userecursivefactorization, LinearCache, @get_cac
66
using LinearSolve.LinearAlgebra, LinearSolve.ArrayInterface, RecursiveFactorization
77
using SciMLBase: SciMLBase, ReturnCode
88
using SciMLLogging: @SciMLMessage
9-
using TriangularSolve
109

1110
LinearSolve.userecursivefactorization(A::Union{Nothing, AbstractMatrix}) = true
1211

@@ -132,7 +131,10 @@ function SciMLBase.solve!(cache::LinearSolve.LinearCache, alg::ButterflyFactoriz
132131
(;A, b, ws, U, V, out, tmp, n) = workspace
133132
b[1:M] .= cache_b
134133
mul!(tmp, U', b)
135-
TriangularSolve.ldiv!(F, tmp, thread)
134+
135+
# TriangularSolve.ldiv!
136+
RecursiveFactorization.ldiv!(F, tmp, thread)
137+
136138
mul!(b, V, tmp)
137139
out .= @view b[1:n]
138140
SciMLBase.build_linear_solution(alg, out, nothing, cache)

0 commit comments

Comments
 (0)