Compute Integer Array Partial Sums
Compute the partial sums of the input integer array named “Array” and put the result in an output integer array named “PartialSum”. A partial sum is the sum of all of the elements up to but not including a certain point in an array, so output element 0 is always 0, element 1 is array[0], element 2 is array[0] + array[1], etc.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Array (inputs:array) |
|
List of integers whose partial sum is to be computed. |
[] |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Partial Sum (outputs:partialSum) |
|
Array whose nth value equals the nth partial sum of the input “Array”. |
[] |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.PartialSum |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Compute Integer Array Partial Sums |
Categories |
math:operator |
Generated Class Name |
OgnPartialSumDatabase |
Python Module |
omni.graph.nodes |