Skip to content

Commit 77c66a6

Browse files
committed
Add eigvals specialization
1 parent 0c45d0e commit 77c66a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tensors/diagonal.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ end
368368
function LinearAlgebra.svdvals(d::DiagonalTensorMap)
369369
return SectorDict(c => LinearAlgebra.svdvals(b) for (c, b) in blocks(d))
370370
end
371+
function LinearAlgebra.eigvals(d::DiagonalTensorMap)
372+
return SectorDict(c => LinearAlgebra.eigvals(b) for (c, b) in blocks(d))
373+
end
374+
371375

372376
function LinearAlgebra.cond(d::DiagonalTensorMap, p::Real=2)
373377
return LinearAlgebra.cond(Diagonal(d.data), p)

0 commit comments

Comments
 (0)