Add: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
== Supported Data Types == | == Supported Data Types == | ||
* Complex | |||
* Float | |||
* Int | |||
* Short | |||
== Parameters == | == Parameters == | ||
; IO Type | |||
: Supported data types | |||
:* Complex | |||
:* Float | |||
:* Int | |||
:* Short | |||
; Vec Length | |||
: Length of the vector | |||
; Num Inputs | ; Num Inputs | ||
: Number of streams to add | : Number of streams to add | ||
Line 26: | Line 36: | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_blk_impl.cc add_blk_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/add_blk_impl.h add_blk_impl.h] | ||
; Public header files | ; Public header files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/add_blk.h add_blk.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_add_xx.block.yml blocks_add_xx.block.yml] |
Latest revision as of 09:23, 25 August 2022
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".
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