Skip to content

Commit 3f36f3d

Browse files
committed
make adjoint and transpose "recursive"
1 parent 423d393 commit 3f36f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/indexablemap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ LinearAlgebra.isposdef(A::IndexableMap) = isposdef(A.lmap)
1212

1313
Base.:(==)(A::IndexableMap, B::IndexableMap) = A.lmap == B.lmap
1414

15-
Base.adjoint(A::IndexableMap) = IndexableMap(adjoint(A.lmap), (i,j) -> conj(A.getind(j,i)))
16-
Base.transpose(A::IndexableMap) = IndexableMap(transpose(A.lmap), (i,j) -> A.getind(j,i))
15+
Base.adjoint(A::IndexableMap) = IndexableMap(adjoint(A.lmap), (i,j) -> adjoint(A.getind(j,i)))
16+
Base.transpose(A::IndexableMap) = IndexableMap(transpose(A.lmap), (i,j) -> transpose(A.getind(j,i)))
1717
# rewrapping preserves indexability but redefines, e.g., symmetry properties
1818
LinearMap(A::IndexableMap; getind=nothing, kwargs...) = IndexableMap(LinearMap(A.lmap; kwargs...), getind)
1919
# addition/subtraction/scalar multiplication preserve indexability

0 commit comments

Comments
 (0)