Skip to content

Commit c02f453

Browse files
committed
bump Sparspak dependency to 0.3.1
1 parent 1a1b829 commit c02f453

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ExtendableSparse"
22
uuid = "95c220a8-a1cf-11e9-0c77-dbfce5f500b3"
33
authors = ["Juergen Fuhrmann <[email protected]>"]
4-
version = "0.9.3"
4+
version = "0.9.4"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -18,7 +18,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1818
DocStringExtensions = "0.8.0,0.9"
1919
ILUZero= "0.2"
2020
Requires = "1.1.3"
21-
Sparspak = "0.3.0"
21+
Sparspak = "0.3.1"
2222
julia = "1.6"
2323

2424
[extras]

src/sprand.jl

+4
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ end
258258

259259
fdrand(nx,ny=1,nz=1;kwargs...)=fdrand(Float64,nx,ny,nz;kwargs...)
260260

261+
262+
263+
### for use with LinearSolve.jl
261264
function solverbenchmark(T,solver,nx,ny=1,nz=1; symmetric=false, matrixtype=ExtendableSparseMatrix,seconds=0.5, repeat=1, tol=sqrt(eps(Float64)))
262265
A=fdrand(T,nx,ny,nz;symmetric,matrixtype)
263266
n=size(A,1)
@@ -297,3 +300,4 @@ function solverbenchmark(T,solver; dim=1, nsizes=10, sizes=[10*2^i for i=1:nsize
297300
end
298301
sizes,times
299302
end
303+

src/umfpack_lu.jl

+3
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ function update!(lufact::LUFactorization)
2727
lufact
2828
end
2929

30+
LinearAlgebra.ldiv!(fact::LUFactorization, v)=fact.fact\v
31+
LinearAlgebra.ldiv!(u,fact::LUFactorization, v)=u.=fact.fact\v
32+

test/linsolve-test.jl

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### A Pluto.jl notebook ###
2-
# v0.19.11
2+
# v0.19.14
33

44
using Markdown
55
using InteractiveUtils
@@ -220,6 +220,22 @@ pyplot(alldicts, subset=(:klu_u_3d, :umfpack_u_3d, :lspardiso_u_3d, :backslash_u
220220
# ╔═╡ 318b60ec-d778-4e59-a699-cdc4fd42bf36
221221
pyplot(alldicts, subset=(:klu_u_3d, :umfpack_u_3d, :lspardiso_u_3d, :backslash_s_3d,:pcg_s_3d,:cholesky_s_3d))
222222

223+
# ╔═╡ 00000000-0000-0000-0000-000000000001
224+
PLUTO_PROJECT_TOML_CONTENTS = """
225+
[deps]
226+
"""
227+
228+
# ╔═╡ 00000000-0000-0000-0000-000000000002
229+
PLUTO_MANIFEST_TOML_CONTENTS = """
230+
# This file is machine-generated - editing it directly is not advised
231+
232+
julia_version = "1.8.2"
233+
manifest_format = "2.0"
234+
project_hash = "da39a3ee5e6b4b0d3255bfef95601890afd80709"
235+
236+
[deps]
237+
"""
238+
223239
# ╔═╡ Cell order:
224240
# ╠═60941eaa-1aea-11eb-1277-97b991548781
225241
# ╠═80247f26-bbc5-4253-a47b-26e953684850
@@ -261,3 +277,5 @@ pyplot(alldicts, subset=(:klu_u_3d, :umfpack_u_3d, :lspardiso_u_3d, :backslash_s
261277
# ╠═d7200524-6365-42f6-a096-77484df9e247
262278
# ╠═f991f70e-b202-4e0a-86bf-2c7cd7dbb678
263279
# ╠═6a72395d-4f41-4f12-abd7-501575feaf84
280+
# ╟─00000000-0000-0000-0000-000000000001
281+
# ╟─00000000-0000-0000-0000-000000000002

0 commit comments

Comments
 (0)