You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: benchmark/TensorKitBenchmarks/utils/BenchUtils.jl
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,9 @@ using TensorKit
8
8
parse_type(x::String) =eval(Meta.parse(x))
9
9
10
10
functionexpand_kwargs(params::Dict)
11
-
const_params =NamedTuple(Symbol(key) => value
12
-
for (key, value) in params if!(value isa Vector))
11
+
const_params =NamedTuple(
12
+
Symbol(key) => value for (key, value) in params if!(value isa Vector)
13
+
)
13
14
nonconst_keys =Tuple(Symbol(key) for (key, value) in params if value isa Vector)
14
15
nonconst_vals = (value for value invalues(params) if value isa Vector)
15
16
return Iterators.map(Iterators.product(nonconst_vals...)) do expanded_vals
@@ -22,15 +23,15 @@ end
22
23
23
24
Creates a (graded) vector space with sectortype `I` and total dimension `D`, where the distribution of charges is controlled through a spread parameter `sigma`.
0 commit comments