---
title: "ClikaRT::ops::outer"
sidebar_label: "outer"
description: "Outer product of two 1-D tensors: [m] x [n] -> [m, n]. \\[ \\mathrm{out}_{ij} = a_i\\,b_j \\] input a 1-D tensor [m]. other a 1-D tensor [n]. [m, n]."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--function">function</span>

## outer() {#outer}

<div class="api-signature">

[`Tensor`](../Tensor.md) **`outer`**([`Tensor`](../Tensor.md) `input`, [`Tensor`](../Tensor.md) `other`)

</div>

Outer product of two 1-D tensors: `[m] x [n] -> [m, n]`.

$$
\mathrm{out}_{ij} = a_i\,b_j
$$

**Parameters**

- `input`: a 1-D tensor `[m]`.
- `other`: a 1-D tensor `[n]`.

**Returns:** `[m, n]`.

**Throws**

- `ClikaRT::Error`: (`INVALID_ARGUMENT`) when either operand is not 1-D.

<div class="api-declared">

Declared in `ClikaRT/compute/ops.h`, line 2927

</div>
