list-dotprod-help.pd 1012 B

12345678910111213141516171819202122232425262728293031323334
  1. #N canvas 0 26 483 343 10;
  2. #X obj 59 150 list-dotprod;
  3. #X msg 138 118 3 1;
  4. #X text 40 32 list-dotprod;
  5. #X text 60 53 dot-product of two lists: res = sum(Xi*Yi);
  6. #X obj 290 188 list-mult;
  7. #X obj 290 215 list-accum;
  8. #X msg 348 160 3 1;
  9. #X floatatom 59 179 5 0 0 0 - - -;
  10. #X floatatom 290 240 5 0 0 0 - - -;
  11. #X text 240 137 a bit faster \, but the same as;
  12. #X msg 59 119 2 4;
  13. #X msg 290 161 2 4;
  14. #X text 57 209 2*3 + 4*1 = 10;
  15. #N canvas 520 35 494 396 META 0;
  16. #X text 12 5 KEYWORDS control list_op;
  17. #X text 12 25 LICENSE SIBSD;
  18. #X text 12 125 AUTHOR Frank Barknecht;
  19. #X text 12 145 HELP_PATCH_AUTHORS Frank Barknecht. "pd meta" information
  20. added by Jonathan Wilkes for Pd version 0.42.;
  21. #X text 12 65 INLET_0 list;
  22. #X text 12 85 INLET_1 list;
  23. #X text 12 105 OUTLET_0 list;
  24. #X text 12 45 DESCRIPTION dot-product of two lists : res = sum(Xi*Yi)
  25. ;
  26. #X restore 421 312 pd META;
  27. #X connect 0 0 7 0;
  28. #X connect 1 0 0 1;
  29. #X connect 4 0 5 0;
  30. #X connect 5 0 8 0;
  31. #X connect 6 0 4 1;
  32. #X connect 10 0 0 0;
  33. #X connect 11 0 4 0;