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 and expr2 must evaluate to vectors that have the same format and number of dimensions.

  • INNER_PRODUCT returns NULL, if either expr1 or expr2 is NULL.