We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c94ec36 commit 987c253Copy full SHA for 987c253
1 file changed
test/abstracttensor/blocktensor.jl
@@ -207,6 +207,16 @@ end
207
@test ta ≈ tb
208
end
209
210
+@testset "Adjoint via conversion" begin
211
+ t1 = rand(ComplexF64, V1 ⊗ V2 ← V4')
212
+ a = convert(TensorMap, t1)
213
+ t1adj = @constinferred adjoint(t1)
214
+ t1adj′ = @constinferred copy(t1adj)
215
+ @test !(eltype(t1adj′) <: AdjointTensorMap)
216
+ @test t1adj ≈ t1adj′
217
+ @test a' ≈ convert(TensorMap, t1adj)
218
+end
219
+
220
# if hasfusiontensor(I)
221
# @timedtestset "Tensor functions" begin
222
# W = V1 ⊗ V2
0 commit comments