Subtract
Subtract two or more values of any numeric type (element-wise). This includes simple values, tuples, arrays, and arrays of tuples. If one input has a higher dimension than the other, then the input with lower dimension will be added to each element of the higher-dimension input. Examples: - tuple - scalar = resultTuple (where resultTuple is formed by subtracting scalar from each element in tuple). - arrayOfTuples - tuple = resultArrayOfTuples (where resultArrayOfTuples is formed by subtracting each element in tuple from each corresponding element of each tuple in arrayOfTuples). - arrayOfTuples - scalar = resultArrayOfTuples (where resultArrayOfTuples is formed by subtracting scalar from each element of every tuple in arrayOfTuples). To add/remove subtrahends on this node, select the node and press the small “+”/”-” buttons in the bottom-right corner of the “Inputs” widget in the “Property” window.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
A (inputs:a) |
|
The initial value from which “B” is subtracted from. |
None |
B (inputs:b) |
|
The value which is subtracted from the input “A”. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Difference (outputs:difference) |
|
The element-wise difference of the input numerical values (with preserved typing). |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.Subtract |
Version |
2 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Subtract |
Categories |
math:operator |
Generated Class Name |
OgnSubtractDatabase |
Python Module |
omni.graph.nodes |