final case classRepeatChannels(a: GE, num: Int) extends GE.Lazy with Product with Serializable
An auxiliary graph element that repeats
the channels of an input signal, allowing
for example for an exhaustive element-wise
combination with another signal.
Normally, the way multi-channel expansion
works is that when two signals are combined,
the output signal has a number of channels
that is the maximum of the individual number
of channels, and channels will be automatically
wrapped around.
For example, in x * y if x has three and
y has five channels, the result expands to
Using this element, we can enforce the appearance
of all combinations of channels, resulting in a signal
whose number of channels is the sum of the individual
number of channels.
For example, RepeatChannels(x, 5) expands to
Seq[GE](
x \ 0, x \ 0, x \ 0, x \ 0, x \ 0,
x \ 1, x \ 1, x \ 1, x \ 1, x \ 1,
x \ 2, x \ 2, x \ 2, x \ 2, x \ 2
)
And RepeatChannels(x, 5) * y accordingly expands to
the fifteen-channels signal
An auxiliary graph element that repeats the channels of an input signal, allowing for example for an exhaustive element-wise combination with another signal.
Normally, the way multi-channel expansion works is that when two signals are combined, the output signal has a number of channels that is the maximum of the individual number of channels, and channels will be automatically wrapped around.
For example, in
x * y
ifx
has three andy
has five channels, the result expands toUsing this element, we can enforce the appearance of all combinations of channels, resulting in a signal whose number of channels is the sum of the individual number of channels.
For example,
RepeatChannels(x, 5)
expands toAnd
RepeatChannels(x, 5) * y
accordingly expands to the fifteen-channels signalthe signal whose channels to repeat
the number of repetitions for each input channel
ChannelRangeProxy