Temporal window

Returns the last n values of a flow as an array.

At first step the output flow is defined with the first input (an array of size n) and then the output flow is defined with the last n values of the second input. In the resulting array, the kth element contains the flow delayed by k steps.

Syntax

window<<n>> (expr)(expr)

Signatures

  1. Type
    ('T^n)('T) returns ('T^n) 

    In this operator 'T can be extended to a group

  2. Causality

    The output depends instantaneously on its second input.

  3. Initialization

    The resulting sequence has its first values defined if the first input has its first values defined.

  4. Clock

    Inputs and the output have the same clock.