Dot Product
Compute the dot product of two vectors, or two arrays of vectors. If arrays of vectors are provided, then the dot product will be taken on an element-by-element basis between the two arrays (e.g. if two arrays with three vectors each are provided, the result will be another array containing three scalars where the first output scalar is the result of taking the dot product between the first vectors in each input array, the second output vector is the result of taking the dotproduct between the second vectors in each input array, etc.). The inputs “A” and “B” must either both be vectors, or both be arrays of vectors with the same number of elements.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
A (inputs:a) |
|
The first vector (or array of vectors) for which the dot product is to be computed. |
None |
B (inputs:b) |
|
The second vector (or array of vectors) for which the dot product is to be computed. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Product (outputs:product) |
|
The resulting dot product between vector(s) “A” and vector(s) “B”. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.DotProduct |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Dot Product |
Categories |
math:operator |
Generated Class Name |
OgnDotProductDatabase |
Python Module |
omni.graph.nodes |