Skip to content

Commit 709b3a6

Browse files
authored
Fix diagonal.jl
1 parent 563f4e7 commit 709b3a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tensors/diagonal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function DiagonalTensorMap(t::AbstractTensorMap{T,S,1,1}) where {T,S}
6363
# TODO: rewrite in terms of `diagview` from MatrixAlgebraKit.jl
6464
copy!(b.diag, view(bt, LinearAlgebra.diagind(bt)))
6565
end
66-
return t
66+
return d
6767
end
6868

6969
# TODO: more constructors needed?

0 commit comments

Comments
 (0)