| AI Engine-ML v2 Intrinsics User Guide v2025.2

Loading...
Searching...
No Matches
Insert a vector into a vector
Vector Conversions » Insert vector

## Insert 128-bit in 512-bit register
v128int4 | insert (v128int4 v, int idx, v32int4 b)
v128uint4 | insert (v128uint4 v, int idx, v32uint4 b)
v64int8 | insert (v64int8 v, int idx, v16int8 b)
v64uint8 | insert (v64uint8 v, int idx, v16uint8 b)
v16cint16 | insert (v16cint16 v, int idx, v4cint16 b)
v32int16 | insert (v32int16 v, int idx, v8int16 b)
v32uint16 | insert (v32uint16 v, int idx, v8uint16 b)
v8cint32 | insert (v8cint32 v, int idx, v2cint32 b)
v16int32 | insert (v16int32 v, int idx, v4int32 b)
v16uint32 | insert (v16uint32 v, int idx, v4uint32 b)
v32bfloat16 | insert (v32bfloat16 v, int idx, v8bfloat16 b)
v32float16 | insert (v32float16 v, int idx, v8float16 b)
v64bfloat8 | insert (v64bfloat8 v, int idx, v16bfloat8 b)
v64float8 | insert (v64float8 v, int idx, v16float8 b)
v16float | insert (v16float v, int idx, v4float b)
v16cbfloat16 | insert (v16cbfloat16 v, int idx, v4cbfloat16 b)
v8cfloat | insert (v8cfloat v, int idx, v2cfloat b)

## Insert 128-bit in 256-bit register
v64int4 | insert (v64int4 a, int idx, v32int4 b)
v64uint4 | insert (v64uint4 a, int idx, v32uint4 b)
v32int8 | insert (v32int8 a, int idx, v16int8 b)
v32uint8 | insert (v32uint8 a, int idx, v16uint8 b)
v8cint16 | insert (v8cint16 a, int idx, v4cint16 b)
v16int16 | insert (v16int16 a, int idx, v8int16 b)
v16uint16 | insert (v16uint16 a, int idx, v8uint16 b)
v4cint32 | insert (v4cint32 a, int idx, v2cint32 b)
v8int32 | insert (v8int32 a, int idx, v4int32 b)
v8uint32 | insert (v8uint32 a, int idx, v4uint32 b)
v16bfloat16 | insert (v16bfloat16 a, int idx, v8bfloat16 b)
v16float16 | insert (v16float16 a, int idx, v8float16 b)
v32bfloat8 | insert (v32bfloat8 a, int idx, v16bfloat8 b)
v32float8 | insert (v32float8 a, int idx, v16float8 b)
v8float | insert (v8float a, int idx, v4float b)
v8cbfloat16 | insert (v8cbfloat16 a, int idx, v4cbfloat16 b)
v4cfloat | insert (v4cfloat a, int idx, v2cfloat b)

## Detailed Description

Inserts a vector into another one. The insertion position depends on the size of the vector that should be inserted and the input idx.

## Function Documentation

## ◆ insert() [1/34]

v128int4 insert | ( | v128int4 | v,
|  | int | idx,
|  | v32int4 | b )

## ◆ insert() [2/34]

v128uint4 insert | ( | v128uint4 | v,
|  | int | idx,
|  | v32uint4 | b )

## ◆ insert() [3/34]

v16bfloat16 insert | ( | v16bfloat16 | a,
|  | int | idx,
|  | v8bfloat16 | b )

## ◆ insert() [4/34]

v16cbfloat16 insert | ( | v16cbfloat16 | v,
|  | int | idx,
|  | v4cbfloat16 | b )

## ◆ insert() [5/34]

v16cint16 insert | ( | v16cint16 | v,
|  | int | idx,
|  | v4cint16 | b )

## ◆ insert() [6/34]

v16float insert | ( | v16float | v,
|  | int | idx,
|  | v4float | b )

## ◆ insert() [7/34]

v16float16 insert | ( | v16float16 | a,
|  | int | idx,
|  | v8float16 | b )

## ◆ insert() [8/34]

v16int16 insert | ( | v16int16 | a,
|  | int | idx,
|  | v8int16 | b )

## ◆ insert() [9/34]

v16int32 insert | ( | v16int32 | v,
|  | int | idx,
|  | v4int32 | b )

## ◆ insert() [10/34]

v16uint16 insert | ( | v16uint16 | a,
|  | int | idx,
|  | v8uint16 | b )

## ◆ insert() [11/34]

v16uint32 insert | ( | v16uint32 | v,
|  | int | idx,
|  | v4uint32 | b )

## ◆ insert() [12/34]

v32bfloat16 insert | ( | v32bfloat16 | v,
|  | int | idx,
|  | v8bfloat16 | b )

## ◆ insert() [13/34]

v32bfloat8 insert | ( | v32bfloat8 | a,
|  | int | idx,
|  | v16bfloat8 | b )

## ◆ insert() [14/34]

v32float16 insert | ( | v32float16 | v,
|  | int | idx,
|  | v8float16 | b )

## ◆ insert() [15/34]

v32float8 insert | ( | v32float8 | a,
|  | int | idx,
|  | v16float8 | b )

## ◆ insert() [16/34]

v32int16 insert | ( | v32int16 | v,
|  | int | idx,
|  | v8int16 | b )

## ◆ insert() [17/34]

v32int8 insert | ( | v32int8 | a,
|  | int | idx,
|  | v16int8 | b )

## ◆ insert() [18/34]

v32uint16 insert | ( | v32uint16 | v,
|  | int | idx,
|  | v8uint16 | b )

## ◆ insert() [19/34]

v32uint8 insert | ( | v32uint8 | a,
|  | int | idx,
|  | v16uint8 | b )

## ◆ insert() [20/34]

v4cfloat insert | ( | v4cfloat | a,
|  | int | idx,
|  | v2cfloat | b )

## ◆ insert() [21/34]

v4cint32 insert | ( | v4cint32 | a,
|  | int | idx,
|  | v2cint32 | b )

## ◆ insert() [22/34]

v64bfloat8 insert | ( | v64bfloat8 | v,
|  | int | idx,
|  | v16bfloat8 | b )

## ◆ insert() [23/34]

v64float8 insert | ( | v64float8 | v,
|  | int | idx,
|  | v16float8 | b )

## ◆ insert() [24/34]

v64int4 insert | ( | v64int4 | a,
|  | int | idx,
|  | v32int4 | b )

## ◆ insert() [25/34]

v64int8 insert | ( | v64int8 | v,
|  | int | idx,
|  | v16int8 | b )

## ◆ insert() [26/34]

v64uint4 insert | ( | v64uint4 | a,
|  | int | idx,
|  | v32uint4 | b )

## ◆ insert() [27/34]

v64uint8 insert | ( | v64uint8 | v,
|  | int | idx,
|  | v16uint8 | b )

## ◆ insert() [28/34]

v8cbfloat16 insert | ( | v8cbfloat16 | a,
|  | int | idx,
|  | v4cbfloat16 | b )

## ◆ insert() [29/34]

v8cfloat insert | ( | v8cfloat | v,
|  | int | idx,
|  | v2cfloat | b )

## ◆ insert() [30/34]

v8cint16 insert | ( | v8cint16 | a,
|  | int | idx,
|  | v4cint16 | b )

## ◆ insert() [31/34]

v8cint32 insert | ( | v8cint32 | v,
|  | int | idx,
|  | v2cint32 | b )

## ◆ insert() [32/34]

v8float insert | ( | v8float | a,
|  | int | idx,
|  | v4float | b )

## ◆ insert() [33/34]

v8int32 insert | ( | v8int32 | a,
|  | int | idx,
|  | v4int32 | b )

## ◆ insert() [34/34]

v8uint32 insert | ( | v8uint32 | a,
|  | int | idx,
|  | v4uint32 | b )