fn inner_product(lhs: VectorRef<'_>, rhs: VectorRef<'_>) -> Result<F64>
Expand description
query R
SELECT inner_product('[1,2]'::vector(2), '[3,4]');
----
11
query error dimensions
SELECT inner_product('[1,2]'::vector(2), '[3]');
query R
SELECT inner_product('[3e38]'::vector(1), '[3e38]');
----
Infinity
query R
SELECT inner_product('[1,1,1,1,1,1,1,1,1]'::vector(9), '[1,2,3,4,5,6,7,8,9]');
----
45
query R
SELECT '[1,2]'::vector(2) <#> '[3,4]';
----
-11