Add

From GNU Radio
Revision as of 09:23, 25 August 2022 by MubashiraZaman (talk | contribs) (→‎Source Files)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Add samples across all input streams.

For all n samples on all M input streams x_m:

output[n] = sum( x_0[n], x_1[n], ..., x_m[n])

Supported Data Types

  • Complex
  • Float
  • Int
  • Short

Parameters

IO Type
Supported data types
  • Complex
  • Float
  • Int
  • Short
Vec Length
Length of the vector
Num Inputs
Number of streams to add

Example Flowgraph

This flowgraph uses an Add Block to generate the classic "dial tone".

Add block fg.png

Add Block out.png

Source Files

C++ files
add_blk_impl.cc
Header files
add_blk_impl.h
Public header files
add_blk.h
Block definition
blocks_add_xx.block.yml