From 71f9dd3350babbe45971600776f04e806a439e64 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Wed, 7 Jan 2026 18:17:49 -0500 Subject: [PATCH 1/3] Make AnyAbstractSparseArray more general --- Project.toml | 2 +- src/abstractsparsearray.jl | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 6817bce..65ec019 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SparseArraysBase" uuid = "0d5efcca-f356-4864-8770-e1ed8d78f208" authors = ["ITensor developers and contributors"] -version = "0.8.1" +version = "0.8.2" [deps] Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" diff --git a/src/abstractsparsearray.jl b/src/abstractsparsearray.jl index c835b48..261db08 100644 --- a/src/abstractsparsearray.jl +++ b/src/abstractsparsearray.jl @@ -5,8 +5,13 @@ const AbstractSparseVector{T} = AbstractSparseArray{T, 1} const AbstractSparseMatrix{T} = AbstractSparseArray{T, 2} using Adapt: WrappedArray +using LinearAlgebra: Adjoint, Transpose const WrappedAbstractSparseArray{T, N} = - WrappedArray{T, N, AbstractSparseArray, AbstractSparseArray{T, N}} + Union{ + WrappedArray{T, N, AbstractSparseArray, AbstractSparseArray{T, N}}, + Adjoint{T, <:AbstractSparseArray}, + Transpose{T, <:AbstractSparseArray}, +} const AnyAbstractSparseArray{T, N} = Union{ AbstractSparseArray{T, N}, WrappedAbstractSparseArray{T, N}, } From 14c1a7d99ff1d89b88202b51adfbd2e058708ed1 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Thu, 8 Jan 2026 10:03:37 -0500 Subject: [PATCH 2/3] Add missing test compat --- test/Project.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Project.toml b/test/Project.toml index f625478..9230ef0 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -26,6 +26,8 @@ Aqua = "0.8.11" ArrayLayouts = "1.11.1" Dictionaries = "0.4.4" FillArrays = "1.13.0" +FunctionImplementations = "0.3" +AnyAbstractSparseArray JLArrays = "0.2.0, 0.3" LinearAlgebra = "<0.0.1, 1" NamedDimsArrays = "0.12" From c369d51e30653f2829334c80bdd283ee5f42797a Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Thu, 8 Jan 2026 10:05:20 -0500 Subject: [PATCH 3/3] Apply suggestion from @mtfishman --- test/Project.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/test/Project.toml b/test/Project.toml index 9230ef0..30f697e 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -27,7 +27,6 @@ ArrayLayouts = "1.11.1" Dictionaries = "0.4.4" FillArrays = "1.13.0" FunctionImplementations = "0.3" -AnyAbstractSparseArray JLArrays = "0.2.0, 0.3" LinearAlgebra = "<0.0.1, 1" NamedDimsArrays = "0.12"