Skip to content

Commit 4b21b9c

Browse files
github-actions[bot]CompatHelper Juliamtfishman
authored
CompatHelper: bump compat for MatrixAlgebraKit to 0.5, (keep existing compat) (#50)
Co-authored-by: CompatHelper Julia <[email protected]> Co-authored-by: Matt Fishman <[email protected]> Co-authored-by: mtfishman <[email protected]>
1 parent c4a9f88 commit 4b21b9c

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "KroneckerArrays"
22
uuid = "05d0b138-81bc-4ff7-84be-08becefb1ccc"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.2.4"
4+
version = "0.2.5"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -35,7 +35,7 @@ FillArrays = "1.13"
3535
GPUArraysCore = "0.2"
3636
LinearAlgebra = "1.10"
3737
MapBroadcast = "0.1.10"
38-
MatrixAlgebraKit = "0.2, 0.3, 0.4"
38+
MatrixAlgebraKit = "0.2, 0.3, 0.4, 0.5"
3939
TensorAlgebra = "0.3.10, 0.4"
4040
TensorProducts = "0.1.7"
4141
TypeParameterAccessors = "0.4.2"

src/matrixalgebrakit.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ using MatrixAlgebraKit:
4949
svd_trunc,
5050
svd_vals!,
5151
svd_vals,
52-
truncate!
52+
truncate
5353

5454
using DiagonalArrays: DiagonalArrays, diagview
5555
function DiagonalArrays.diagview(a::KroneckerMatrix)
@@ -203,7 +203,7 @@ end
203203

204204
# Truncation
205205

206-
using MatrixAlgebraKit: TruncationStrategy, findtruncated, truncate!
206+
using MatrixAlgebraKit: TruncationStrategy, findtruncated, truncate
207207

208208
struct KroneckerTruncationStrategy{T <: TruncationStrategy} <: TruncationStrategy
209209
strategy::T
@@ -256,30 +256,30 @@ end
256256

257257
for f in [:eig_trunc!, :eigh_trunc!]
258258
@eval begin
259-
function MatrixAlgebraKit.truncate!(
259+
function MatrixAlgebraKit.truncate(
260260
::typeof($f), DV::NTuple{2, KroneckerMatrix}, strategy::TruncationStrategy
261261
)
262-
return truncate!($f, DV, KroneckerTruncationStrategy(strategy))
262+
return truncate($f, DV, KroneckerTruncationStrategy(strategy))
263263
end
264-
function MatrixAlgebraKit.truncate!(
264+
function MatrixAlgebraKit.truncate(
265265
::typeof($f), (D, V)::NTuple{2, KroneckerMatrix}, strategy::KroneckerTruncationStrategy
266266
)
267267
I = findtruncated(diagview(D), strategy)
268-
return (D[I, I], V[(:) × (:), I])
268+
return (D[I, I], V[(:) × (:), I]), I
269269
end
270270
end
271271
end
272272

273-
function MatrixAlgebraKit.truncate!(
273+
function MatrixAlgebraKit.truncate(
274274
f::typeof(svd_trunc!), USVᴴ::NTuple{3, KroneckerMatrix}, strategy::TruncationStrategy
275275
)
276-
return truncate!(f, USVᴴ, KroneckerTruncationStrategy(strategy))
276+
return truncate(f, USVᴴ, KroneckerTruncationStrategy(strategy))
277277
end
278-
function MatrixAlgebraKit.truncate!(
278+
function MatrixAlgebraKit.truncate(
279279
::typeof(svd_trunc!),
280280
(U, S, Vᴴ)::NTuple{3, KroneckerMatrix},
281281
strategy::KroneckerTruncationStrategy,
282282
)
283283
I = findtruncated(diagview(S), strategy)
284-
return (U[(:) × (:), I], S[I, I], Vᴴ[I, (:) × (:)])
284+
return (U[(:) × (:), I], S[I, I], Vᴴ[I, (:) × (:)]), I
285285
end

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ GPUArraysCore = "0.2"
3131
JLArrays = "0.2"
3232
KroneckerArrays = "0.2"
3333
LinearAlgebra = "1.10"
34-
MatrixAlgebraKit = "0.2, 0.3, 0.4"
34+
MatrixAlgebraKit = "0.2, 0.3, 0.4, 0.5"
3535
SafeTestsets = "0.1"
3636
StableRNGs = "1.0"
3737
Suppressor = "0.2"

0 commit comments

Comments
 (0)