Skip to content

Commit 85fce19

Browse files
lkdvosmtfishman
andauthored
Update NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl
Co-authored-by: Matt Fishman <[email protected]>
1 parent bbcdf50 commit 85fce19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/blocksparsearray.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@ blockstype(::Type{<:BlockSparseArray{<:Any,<:Any,<:Any,B}}) where {B} = B
121121

122122
function Base.adjoint(A::BlockSparseMatrix)
123123
T = Base.promote_op(adjoint, eltype(A))
124-
return BlockSparseArray{T,2}(adjoint(A.blocks), reverse(A.axes))
124+
return BlockSparseMatrix{T}(adjoint(blocks(A)), dual.(reverse(axes(A))))
125125
end

0 commit comments

Comments
 (0)