Skip to content

Commit

Permalink
Add a scalar diag test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Aug 14, 2024
1 parent d460a81 commit 03ad5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NDTensors/test/test_diag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ using .NDTensorsTestUtils: devices_list, is_supported_eltype
@test x == dev(diagm(0 => vr))
@test x == D
end

@test sqrt(contract(D, (-1,-2), D, (-1,-2))[]) norm(D)
# This if statement corresponds to the reported bug:
# https://github.com/JuliaGPU/Metal.jl/issues/364
if !(dev == NDTensors.mtl && elt === ComplexF32)
Expand Down

0 comments on commit 03ad5b4

Please sign in to comment.