@@ -40,11 +40,11 @@ function FiniteDifferences.to_vec(t::TK.SectorDict)
4040 x = T <: Real ? x_real : reinterpret (T, x_real)
4141 ctr = 0
4242 return TK. SectorDict (c => (n = length (b);
43- b′ = reshape (view (x, ctr .+ (1 : n)), size (b)) ./
44- sqrt (dim (c));
45- ctr += n;
46- b′)
47- for (c, b) in t)
43+ b′ = reshape (view (x, ctr .+ (1 : n)), size (b)) ./
44+ sqrt (dim (c));
45+ ctr += n;
46+ b′)
47+ for (c, b) in t)
4848 end
4949 return vec_real, from_vec
5050end
@@ -135,7 +135,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
135135 ℂ[FibonacciAnyon](:I => 2 , :τ => 2 )))
136136
137137@timedtestset " Automatic Differentiation with spacetype $(TK. type_repr (eltype (V))) " verbose = true for V in
138- Vlist
138+ Vlist
139139 eltypes = isreal (sectortype (eltype (V))) ? (Float64, ComplexF64) : (ComplexF64,)
140140 symmetricbraiding = BraidingStyle (sectortype (eltype (V))) isa SymmetricBraiding
141141
@@ -429,7 +429,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
429429 test_rrule (tsvd, B; atol, output_tangent= (ΔU, ΔS, ΔV, 0.0 ))
430430
431431 Vtrunc = spacetype (S)(TK. SectorDict (c => ceil (Int, size (b, 1 ) / 2 )
432- for (c, b) in blocks (S)))
432+ for (c, b) in blocks (S)))
433433
434434 U, S, V, ϵ = tsvd (B; trunc= truncspace (Vtrunc))
435435 ΔU = randn (scalartype (U), space (U))
@@ -448,7 +448,7 @@ Vlist = ((ℂ^2, (ℂ^3)', ℂ^3, ℂ^2, (ℂ^2)'),
448448 test_rrule (tsvd, C; atol, output_tangent= (ΔU, ΔS, ΔV, 0.0 ))
449449
450450 c, = TK. MatrixAlgebra. _argmax (x -> sqrt (dim (x[1 ])) * maximum (diag (x[2 ])),
451- blocks (S))
451+ blocks (S))
452452 trunc = truncdim (round (Int, 2 * dim (c)))
453453 U, S, V, ϵ = tsvd (C; trunc)
454454 ΔU = randn (scalartype (U), space (U))
0 commit comments