---
title: "array_cross_product function in Strata | Oplema"
description: "Calculate the cross product of two numeric arrays of size 3, returning a new array of size 3. Use it in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/array-cross-product"
updated: "2026-11-04"
---

# array\_cross\_product

Computes the cross product of two arrays of size 3. The array elements can not be NULL.

## Try an expression

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

### Expression

```
array_cross_product(array_value(1.0::FLOAT, 2.0::FLOAT, 3.0::FLOAT), array_value(2.0::FLOAT, 3.0::FLOAT, 4.0::FLOAT))
```

### Result

```
'[-1.0, 2.0, -1.0]'
```

The expression returns `FLOAT[3]`. Formula stores it as `VARCHAR` in this example. 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 | \[-1.0, 2.0, -1.0\] |

## Arguments and types

```
array_cross_product(array, array)
```

**array**

List

Supported signatures (2)

```
array_cross_product(array: DOUBLE[3], array: DOUBLE[3]) → DOUBLE[3]
array_cross_product(array: FLOAT[3], array: FLOAT[3]) → FLOAT[3]
```

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

[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)[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\_cosine\_distance

Computes the cosine distance 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-cosine-distance)[array\_cosine\_similarity

Computes the cosine similarity 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-cosine-similarity)

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

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