OmniGraph Node omni.graph.nodes.PartialSum

omni.graph.nodes.PartialSum Properties

Name

Value

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

omni.graph.nodes.PartialSum Description

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.

omni.graph.nodes.PartialSum Inputs

Name

Type

Default

Required?

Descripton

inputs:array

int[]

[]

Y

List of integers whose partial sum is to be computed

__default

[]

omni.graph.nodes.PartialSum Outputs

Name

Type

Default

Required?

Descripton

outputs:partialSum

int[]

[]

Y

Array whose nth value equals the nth partial sum of the input ‘array’

__default

[]