From 85fce19b47f0e609e6c1b520728261816d3061c1 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Thu, 7 Nov 2024 09:49:27 -0500 Subject: [PATCH] Update NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl Co-authored-by: Matt Fishman --- .../BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl b/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl index 3ead7174d7..990d956d0c 100644 --- a/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl +++ b/NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl @@ -121,5 +121,5 @@ blockstype(::Type{<:BlockSparseArray{<:Any,<:Any,<:Any,B}}) where {B} = B function Base.adjoint(A::BlockSparseMatrix) T = Base.promote_op(adjoint, eltype(A)) - return BlockSparseArray{T,2}(adjoint(A.blocks), reverse(A.axes)) + return BlockSparseMatrix{T}(adjoint(blocks(A)), dual.(reverse(axes(A)))) end