Skip to content

Commit

Permalink
Update NDTensors/src/lib/BlockSparseArrays/src/blocksparsearray/block…
Browse files Browse the repository at this point in the history
…sparsearray.jl

Co-authored-by: Matt Fishman <mtfishman@users.noreply.github.com>
  • Loading branch information
lkdvos and mtfishman authored Nov 7, 2024
1 parent bbcdf50 commit 85fce19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 85fce19

Please sign in to comment.