| AI Engine-ML Intrinsics User Guide (v2026.1)

Loading...
Searching...
No Matches
Topics
Extract vector
Vector Conversions

## Overview

Extraction intrinsics enable lanes to be selected from vector and accumulator types.

For the extraction of a vector. The exact extraction depends on the size of the vector that will be extracted and the parameter idx. There are two cases:

1. Extracted vector fills half of the vector lanes of original vector (e.g. extract v64int8 from v128int8)
2. Extracted vector fills a fourth of the vector lanes of original vector (e.g. extract v32int8 from v128int8)

In the first case, idx can be zero or one. If it is zero, the lower half of the vector will be extracted, if it is one the upper half of the lanes will be extracted.
In the second case, idx can be zero to three. If idx is zero, the lowest quarter of the vector will be extracted, if idx is one the next highest quarter will be extracted etc...

For the extraction of an element, idx specifies the vector lane that will be extracted.

## Topics
| Extract element from vector
| Extract integer and float data
| Extract sparsity and data from sparse vector
| Update sparse vectors