INNER_PRODUCT
INNER_PRODUCT
calculates the inner product of two vectors. It takes
two vectors as input and returns the inner product as a BINARY_DOUBLE
.
INNER_PRODUCT(<expr1>, <expr2>)
is
equivalent to -1 * VECTOR_DISTANCE(<expr1>, <expr2>,
DOT)
.
Parameters
-
expr1
andexpr2
must evaluate to vectors that have the same format and number of dimensions. -
INNER_PRODUCT
returns NULL, if eitherexpr1
orexpr2
is NULL.
Parent topic: Vector Distance Functions and Operators