Skip to content

Commit b49bc0a

Browse files
github-actions[bot]CompatHelper Juliamtfishman
authored
CompatHelper: bump compat for MatrixAlgebraKit in [weakdeps] to 0.3, (keep existing compat) (#41)
Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: Matt Fishman <[email protected]> Co-authored-by: mtfishman <[email protected]>
1 parent 6c34b1a commit b49bc0a

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DiagonalArrays"
22
uuid = "74fd4be6-21e2-4f6f-823a-4360d37c7a77"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.3.16"
4+
version = "0.3.17"
55

66
[deps]
77
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
@@ -23,6 +23,6 @@ DerivableInterfaces = "0.5.5"
2323
FillArrays = "1.13.0"
2424
LinearAlgebra = "1.10.0"
2525
MapBroadcast = "0.1.10"
26-
MatrixAlgebraKit = "0.2"
26+
MatrixAlgebraKit = "0.2, 0.3"
2727
SparseArraysBase = "0.7.2"
2828
julia = "1.10"

ext/DiagonalArraysMatrixAlgebraKitExt/DiagonalArraysMatrixAlgebraKitExt.jl

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ for f in [
125125
]
126126
for Alg in [:ScaledDeltaAlgorithm, :DeltaAlgorithm]
127127
@eval begin
128-
function MatrixAlgebraKit.initialize_output(::typeof($f), a, alg::$Alg)
128+
function MatrixAlgebraKit.initialize_output(
129+
::typeof($f), a::AbstractMatrix, alg::$Alg
130+
)
129131
return nothing
130132
end
131133
end
@@ -148,13 +150,17 @@ for f in [
148150
:svd_vals!,
149151
]
150152
@eval begin
151-
function MatrixAlgebraKit.check_input(::typeof($f), a, F, alg::DeltaAlgorithm)
153+
function MatrixAlgebraKit.check_input(
154+
::typeof($f), a::AbstractMatrix, F, alg::DeltaAlgorithm
155+
)
152156
@assert size(a, 1) == size(a, 2)
153157
@assert isdiag(a)
154158
@assert all(isone, diagview(a))
155159
return nothing
156160
end
157-
function MatrixAlgebraKit.check_input(::typeof($f), a, F, alg::ScaledDeltaAlgorithm)
161+
function MatrixAlgebraKit.check_input(
162+
::typeof($f), a::AbstractMatrix, F, alg::ScaledDeltaAlgorithm
163+
)
158164
@assert size(a, 1) == size(a, 2)
159165
@assert isdiag(a)
160166
@assert allequal(diagview(a))
@@ -164,13 +170,17 @@ for f in [
164170
end
165171
for f in [:eig_full!, :eig_vals!, :eigh_full!, :eigh_vals!]
166172
@eval begin
167-
function MatrixAlgebraKit.check_input(::typeof($f), a, F, alg::DeltaAlgorithm)
173+
function MatrixAlgebraKit.check_input(
174+
::typeof($f), a::AbstractMatrix, F, alg::DeltaAlgorithm
175+
)
168176
@assert issquare(a)
169177
@assert isdiag(a)
170178
@assert all(isone, diagview(a))
171179
return nothing
172180
end
173-
function MatrixAlgebraKit.check_input(::typeof($f), a, F, alg::ScaledDeltaAlgorithm)
181+
function MatrixAlgebraKit.check_input(
182+
::typeof($f), a::AbstractMatrix, F, alg::ScaledDeltaAlgorithm
183+
)
174184
@assert issquare(a)
175185
@assert isdiag(a)
176186
@assert allequal(diagview(a))

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ DerivableInterfaces = "0.5"
1818
DiagonalArrays = "0.3"
1919
FillArrays = "1"
2020
LinearAlgebra = "1"
21-
MatrixAlgebraKit = "0.2.5"
21+
MatrixAlgebraKit = "0.2.5, 0.3"
2222
SafeTestsets = "0.1"
2323
SparseArraysBase = "0.7"
2424
StableRNGs = "1"

0 commit comments

Comments
 (0)