Divide: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Divide across all input streams.  output = input[0] / input[1] / ... / input[M-1]
Divide across all input streams.  output = input[0] / input[1] / ... / input[M-1]


== Parameters ==
== Parameters ==
== Parameters ==
; IO Type
; IO Type
Line 25: Line 24:


; C++ files
; C++ files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/divide_impl.cc divide_impl.cc]


; Header files
; Header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/divide_impl.h divide_impl.h]


; Public header files
; Public header files
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/divide.h divide.h]


; Block definition
; Block definition
: [https://github.com/gnuradio/gnuradio TODO]
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_divide_XX.block.yml blocks_divide_XX.block.yml]

Latest revision as of 10:03, 25 August 2022

Divide across all input streams. output = input[0] / input[1] / ... / input[M-1]

Parameters

IO Type
Supported data types
  • Complex
  • Float
  • Int
  • Short
Vec Length
Length of the vector
Num Inputs
Number of streams to use in divide operation. If there are more than 2 input streams, the output is calculated in the following order:
output = input[0] / input[1] / ... / input[M-1]

Example Flowgraph

Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI. Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately. The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.

Source Files

C++ files
divide_impl.cc
Header files
divide_impl.h
Public header files
divide.h
Block definition
blocks_divide_XX.block.yml