@@ -8,16 +8,16 @@ const CircularArraySLARTTraces = Traces{
88 <: MultiplexTraces{AA′,<:Trace{<:CircularArrayBuffer}} ,
99 <: Trace{<:CircularArrayBuffer} ,
1010 <: Trace{<:CircularArrayBuffer} ,
11- }
11+ },
1212}
1313
1414function CircularArraySLARTTraces (;
1515 capacity:: Int ,
16- state= Int => (),
17- legal_actions_mask= Bool => (),
18- action= Int => (),
19- reward= Float32 => (),
20- terminal= Bool => ()
16+ state = Int => (),
17+ legal_actions_mask = Bool => (),
18+ action = Int => (),
19+ reward = Float32 => (),
20+ terminal = Bool => (),
2121)
2222 state_eltype, state_size = state
2323 action_eltype, action_size = action
@@ -26,12 +26,18 @@ function CircularArraySLARTTraces(;
2626 terminal_eltype, terminal_size = terminal
2727
2828 MultiplexTraces {SS′} (CircularArrayBuffer {state_eltype} (state_size... , capacity + 1 )) +
29- MultiplexTraces {LL′} (CircularArrayBuffer {legal_actions_mask_eltype} (legal_actions_mask_size... , capacity + 1 )) +
29+ MultiplexTraces {LL′} (
30+ CircularArrayBuffer {legal_actions_mask_eltype} (
31+ legal_actions_mask_size... ,
32+ capacity + 1 ,
33+ ),
34+ ) +
3035 MultiplexTraces {AA′} (CircularArrayBuffer {action_eltype} (action_size... , capacity + 1 )) +
3136 Traces (
32- reward= CircularArrayBuffer {reward_eltype} (reward_size... , capacity),
33- terminal= CircularArrayBuffer {terminal_eltype} (terminal_size... , capacity),
37+ reward = CircularArrayBuffer {reward_eltype} (reward_size... , capacity),
38+ terminal = CircularArrayBuffer {terminal_eltype} (terminal_size... , capacity),
3439 )
3540end
3641
37- CircularArrayBuffers. capacity (t:: CircularArraySLARTTraces ) = minimum (map (capacity,t. traces))
42+ CircularArrayBuffers. capacity (t:: CircularArraySLARTTraces ) =
43+ minimum (map (capacity, t. traces))
0 commit comments