Defines base ops for vector, vector reference and matrix reference data types.
More...
Defines base ops for vector, vector reference and matrix reference data types.
◆ xetla_format
| #define xetla_format template bit_cast_view |
xetla format.
Alias to ESIMD .template bit_cast_view<...>();
- Note
- usage:
[xetla_vector|xetla_vector_ref|xetla_matrix_ref].xetla_format<type>(): returns a reference to the calling object interpreted as a new xetla_vector_ref (1D).
[xetla_vector|xetla_vector_ref|xetla_matrix_ref].
xetla_format<type, rows, columns>(): returns a reference to the calling object interpreted as a new xetla_matrix_ref (2D).
#define xetla_format
xetla format.
Definition base_ops.hpp:38
◆ xetla_merge
| #define xetla_merge merge |
xetla merge.
Alias to .merge(...). Replaces part of the underlying data with the one taken from the other object according to a mask.
- Note
- usage:
[xetla_vector|xetla_vector_ref].xetla_merge(xetla_vector<Ty, N>Val, xetla_mask<N>mask): only elements in lanes with non-zero mask predicate are assigned from corresponding Val elements.
[xetla_vector|xetla_vector_ref].xetla_merge(xetla_vector<Ty, N>Val1, xetla_vector<Ty, N>Val2, xetla_mask<N>mask): non-zero in a mask's lane tells to take corresponding element from Val1, zero - from Val2.
◆ xetla_select
| #define xetla_select template select |
xetla select.
Alias to ESIMD .template select<...>();
- Note
- usage:
[xetla_vector|xetla_vector_ref].xetla_select<size, stride>(uint16_t offset=0): returns a reference to the sub-vector starting from the offset-th element.
[xetla_matrix_ref].
xetla_select<size_y, stride_y, size_x, stride_x>(uint16_t offset_y=0, uint16_t offset_x=0): returns a reference to the sub-matrix starting from the (offset_y, offset_x)-th element.
#define xetla_select
xetla select.
Definition base_ops.hpp:49