VECTOR_INNER_PRODUCT

functionsupportedAI & ML

docs.snowflake.com ↗

Vector functions

Computes the inner product of two vectors. The inner product (also known as the dot or scalar product) multiplies two vectors. The result represents the combined direction of the two vectors. Similar vectors result in larger inner products than dissimilar ones.

Syntax

VECTOR_INNER_PRODUCT( <vector>, <vector> )

Parameters

NameRequiredDescription
vectorrequiredFirst VECTOR value.
vectorrequiredSecond VECTOR value.

Returns

Returns a REAL that is the inner product of the two vectors given as inputs.

Usage notes

See also

Referenced by