DOT_PRODUCT

All functions > ARRAY > DOT_PRODUCT

Calculates the dot product of two arrays.

Signatures

Returns: Dot product of the two vectors

DOT_PRODUCT(array1: ARRAY<DOUBLE>, array2: ARRAY<DOUBLE>) → DOUBLE
sql
ParameterTypeRequiredDescription
array1ARRAY<DOUBLE>YesFirst vector (array of doubles)
array2ARRAY<DOUBLE>YesSecond vector (array of doubles)

Notes

  • Computes sum of element-wise products
  • Formula: sum(x[i] * y[i])
  • Arrays must be same length
  • Used in linear algebra and vector operations
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19