Divide: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Block Docs]]
[[Category:Block Docs]]
[[Category:Stub Docs]]
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]
As this is a basic template, it's also in the [[:Category:Stub_Docs|"Stub Docs category"]]. Please improve it.


== Parameters ==
== Parameters ==
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
; IO Type
: Supported data types
:* Complex
:* Float
:* Int
:* Short


; Param 1 (''R'')
; Vec Length
: Description of parameter, provide any tips or recommended values.  Note that the name of the parameter above should match the param's label that shows up in grc (e.g. Sample Rate).
: Length of the vector


; Param 2
; Num Inputs
: blah blah blah
: 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 ==
== Example Flowgraph ==
Line 21: 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