We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563f4e7 commit 709b3a6Copy full SHA for 709b3a6
src/tensors/diagonal.jl
@@ -63,7 +63,7 @@ function DiagonalTensorMap(t::AbstractTensorMap{T,S,1,1}) where {T,S}
63
# TODO: rewrite in terms of `diagview` from MatrixAlgebraKit.jl
64
copy!(b.diag, view(bt, LinearAlgebra.diagind(bt)))
65
end
66
- return t
+ return d
67
68
69
# TODO: more constructors needed?
0 commit comments