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, you must enable omni.graph.nodes
in the Extension Manager.
Inputs#
Name |
Type |
Description |
Default |
---|---|---|---|
array |
|
List of integers whose partial sum is to be computed |
[] |
Outputs#
Name |
Type |
Description |
Default |
---|---|---|---|
partialSum |
|
Array whose nth value equals the nth partial sum of the input ‘array’ |
[] |