A8

8x8 Householder reflection matrix
Author: Smashed Transistors
License: LGPL
Github: tiar/FDN/A8.axo

Inlets

frac32buffer in0

frac32buffer in1

frac32buffer in2

frac32buffer in3

frac32buffer in4

frac32buffer in5

frac32buffer in6

frac32buffer in7

Outlets

frac32buffer out0

frac32buffer out1

frac32buffer out2

frac32buffer out3

frac32buffer out4

frac32buffer out5

frac32buffer out6

frac32buffer out7

Control Rate
// +-------
// -+------
// --+-----
// ---+----
// ----+---
// -----+--
// ------+-
// -------+
// 2/8 = 1/4

int32_t y[BUFSIZE];
for (int i = 0; i < BUFSIZE; i++) {
  y[i] = (inlet_in0[i] + inlet_in1[i] + inlet_in2[i] + inlet_in3[i] +
          inlet_in4[i] + inlet_in5[i] + inlet_in6[i] + inlet_in7[i]) >>
         2;
}
for (int i = 0; i < BUFSIZE; i++) {
  outlet_out0[i] = inlet_in0[i] - y[i];
  outlet_out1[i] = inlet_in1[i] - y[i];
}
for (int i = 0; i < BUFSIZE; i++) {
  outlet_out2[i] = inlet_in2[i] - y[i];
  outlet_out3[i] = inlet_in3[i] - y[i];
}
for (int i = 0; i < BUFSIZE; i++) {
  outlet_out4[i] = inlet_in4[i] - y[i];
  outlet_out5[i] = inlet_in5[i] - y[i];
}
for (int i = 0; i < BUFSIZE; i++) {
  outlet_out6[i] = inlet_in6[i] - y[i];
  outlet_out7[i] = inlet_in7[i] - y[i];
}

Privacy

© 2024 Zrna Research