Page 1 of 1

Arithmetic combinators each red Vs green

Posted: Tue Nov 19, 2024 6:32 pm
by Pelmichr
TL;DR
Allow arithmetic combinators to use EACH on both sides, from red and green inputs and output pairwise operation results

What?
At the moment, when applying EACH in an alternative combinator, an operation can only be done on the inputs using a single constant. Arithmetic combinators would be much more useful if I could, for example, make it do EACH(red) * EACH(green). At the moment taken a signal set A, the only arithmetic that can be done with signal set B is A+B with wire adding. Note that I'm only suggesting pairwise operation of like signals, not matrix, obviously
Why?
The particular use case I was trying to do was filter out a particular set of signals A from a larger set of signals B. If I could do A*B it would be super easy but instead there's some really janky workarounds to go through. There will certainly be other really useful use-cases as well