---
title: "ClikaRT::ops::frexp"
sidebar_label: "frexp"
description: "Decomposes each element into mantissa * 2^exponent with |mantissa| in [0.5, 1). Floating-point inputs only."
---

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

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

## frexp() {#frexp}

<div class="api-signature">

`std::array<`[`Tensor`](../Tensor.md) `2>` **`frexp`**([`Tensor`](../Tensor.md) `input`)

</div>

Decomposes each element into `mantissa * 2^exponent` with `|mantissa| in [0.5, 1)`. Floating-point inputs only. The mantissa keeps the input's dtype (Float32 for the bit-packed sub-byte float formats, whose value grids cannot hold the mantissa range); the exponent is Int32.

**Returns:** a 2-element array \{mantissa, exponent\}.

<div class="api-declared">

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

</div>
