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 ae19547 commit b2b0b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NDTensors/test/test_blocksparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ using Test: @test, @test_throws, @testset
@allowscalar for I in eachindex(C)
@test C[I] == A[I] + B[I]
end
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 b2b0b19

Please sign in to comment.