Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman authored Jun 20, 2024
1 parent b2b0b19 commit 255f66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NDTensors/test/test_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ NDTensors.dim(i::MyInd) = i.dim
randn!(B)
C = copy(A)
C = permutedims!!(C, B, (1, 2), +)
Cp = NDTensors.map_diag((i -> i * 2), C)
Cp = NDTensors.map_diag(i -> 2 * i, C)
@allowscalar for i in 1:diaglength(Cp)
@test Cp[i, i] == 2.0 * C[i, i]
@test Cp[i, i] == 2 * C[i, i]
end

Ap = permutedims(A, (2, 1))
Expand Down

0 comments on commit 255f66e

Please sign in to comment.