---
title: "list_negative_inner_product function in Strata | Oplema"
description: "Calculate the negative inner product of two numeric lists of the same length. For example, list_negative_inner_product([1, 2, 3], [1, 2, 3]) returns -14.0."
url: "https://oplema.com/docs/strata/functions/list-negative-inner-product"
updated: "2026-11-04"
---

# list\_negative\_inner\_product

Computes the negative inner product between two same-sized lists.

Also available as list\_negative\_dot\_product.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **DOUBLE**.

### Expression

```
list_negative_inner_product([1, 2, 3], [1, 2, 3])
```

### Result

```
-14.0
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | \-14 |

## Arguments and types

```
list_negative_inner_product(list1, list2)
```

**list1**

List

**list2**

List

Supported signatures (2)

```
list_negative_inner_product(list1: DOUBLE[], list2: DOUBLE[]) → DOUBLE
list_negative_inner_product(list1: FLOAT[], list2: FLOAT[]) → FLOAT
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[list\_inner\_product

Computes the inner product between two same-sized lists.

](https://oplema.com/docs/strata/functions/list-inner-product)[array\_negative\_inner\_product

Computes the negative inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.

](https://oplema.com/docs/strata/functions/array-negative-inner-product)[array\_inner\_product

Computes the inner product between two arrays of the same size. The array elements can not be NULL. The arrays can have any size as long as the size is the same for both arguments.

](https://oplema.com/docs/strata/functions/array-inner-product)[list\_cosine\_distance

Computes the cosine distance between two same-sized lists.

](https://oplema.com/docs/strata/functions/list-cosine-distance)

[Browse lists & arrays](https://oplema.com/docs/strata/functions#lists-&-arrays) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/list.html#list_negative_inner_productlist1-list2)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
