Divide: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Divide across all input streams. output = input[0] / input[1] / ... / input[M-1]") |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Block 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] | ||
== 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 | |||
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/divide_impl.cc divide_impl.cc] | |||
; Header files | |||
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/lib/divide_impl.h divide_impl.h] | |||
; Public header files | |||
: [https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/include/gnuradio/blocks/divide.h divide.h] | |||
; Block definition | |||
: [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