From 5d9e2a064aef56e12d210c82132f7851e2672971 Mon Sep 17 00:00:00 2001 From: kmp5VT Date: Wed, 13 Sep 2023 16:02:10 -0400 Subject: [PATCH] format --- test/base/test_emptyitensor.jl | 16 +++++++++++++--- test/base/test_fermions.jl | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/test/base/test_emptyitensor.jl b/test/base/test_emptyitensor.jl index 90fa6f71dc..07171b60a3 100644 --- a/test/base/test_emptyitensor.jl +++ b/test/base/test_emptyitensor.jl @@ -70,19 +70,29 @@ end @test hassameinds(C, (i'', i)) storage(C) storage(C) - @test storage(C) isa BlockSparse{NDTensors.UnspecifiedZero, NDTensors.UnallocatedZeros{NDTensors.UnspecifiedZero, 1, Tuple{Base.OneTo{Int64}}, Vector{NDTensors.UnspecifiedZero}}, 2} + @test storage(C) isa BlockSparse{ + NDTensors.UnspecifiedZero, + NDTensors.UnallocatedZeros{ + NDTensors.UnspecifiedZero,1,Tuple{Base.OneTo{Int64}},Vector{NDTensors.UnspecifiedZero} + }, + 2, + } B = randomITensor(dag(i), i') C = A' * B @test hassameinds(C, (i'', i)) - @test storage(C) isa BlockSparse{Float64, NDTensors.UnallocatedZeros{Float64, 1, Tuple{Base.OneTo{Int64}}, Vector{Float64}}, 2} + @test storage(C) isa BlockSparse{ + Float64,NDTensors.UnallocatedZeros{Float64,1,Tuple{Base.OneTo{Int64}},Vector{Float64}},2 + } C = B' * A @test hassameinds(C, (i'', i)) - @test storage(C) isa BlockSparse{Float64, NDTensors.UnallocatedZeros{Float64, 1, Tuple{Base.OneTo{Int64}}, Vector{Float64}}, 2} + @test storage(C) isa BlockSparse{ + Float64,NDTensors.UnallocatedZeros{Float64,1,Tuple{Base.OneTo{Int64}},Vector{Float64}},2 + } C = B + A @test inds(C) == inds(B) diff --git a/test/base/test_fermions.jl b/test/base/test_fermions.jl index 233f07249a..1d34b20d20 100644 --- a/test/base/test_fermions.jl +++ b/test/base/test_fermions.jl @@ -970,7 +970,7 @@ import ITensors: Out, In s = siteinds("Fermion", N; conserve_qns=true) T = ITensor(QN("Nf", 0, -1), dag(s[1]), s[1]') - T[2, 2] = 1. + T[2, 2] = 1.0 F = eigen(T; ishermitian=true, cutoff=cutoff) D, U, spec = F