Abs: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 19: | Line 19: | ||
; C++ files | ; C++ files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/abs_blk_impl.cc abs_blk_impl.cc] | ||
; Header files | ; Header files | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/abs_blk_impl.h abs_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/abs_blk.h abs_blk.h] | ||
; Block definition | ; Block definition | ||
: [https://github.com/gnuradio/gnuradio/blob/ | : [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_abs_xx.block.yml blocks_abs_xx.block.yml] |
Revision as of 08:48, 25 August 2022
Takes absolute value of data stream (i.e. strips sign). Only supports float, int, and short (not complex).
Parameters
None
Example Flowgraph
This flowgraph shows a sinusoid being passed through Abs, producing full-wave rectification.
Source Files
- C++ files
- abs_blk_impl.cc
- Header files
- abs_blk_impl.h
- Public header files
- abs_blk.h
- Block definition
- blocks_abs_xx.block.yml