AI Engine API User Guide (AIE-API) 2024.1
Loading...
Searching...
No Matches
aie::vector_ref< T, Elems, Resource > Class Template Reference

Type for references to vector registers. More...

Detailed Description

template<typename T, unsigned Elems, aie_dm_resource Resource>
class aie::vector_ref< T, Elems, Resource >

Type for references to vector registers.

Template Parameters
TType of the elements contained in the vector. It must meet aie::ElemBaseType.
ElemsNumber of elements in the vector.

#include <vector_elem_ref.hpp>

Public Types

using elem_type = aie_dm_resource_remove_t< T >
 
using value_type = typename vector_type::value_type
 
using vector_type = vector< std::remove_const_t< elem_type >, Elems >
 

Public Member Functions

constexpr vector_ref (T *ptr)
 
constexpr operator vector_type () const
 
constexpr vector_refoperator= (const vector_type &v)
 

Static Public Member Functions

static constexpr unsigned size ()
 

Member Typedef Documentation

◆ elem_type

template<typename T , unsigned Elems, aie_dm_resource Resource>
using aie::vector_ref< T, Elems, Resource >::elem_type = aie_dm_resource_remove_t<T>

◆ value_type

template<typename T , unsigned Elems, aie_dm_resource Resource>
using aie::vector_ref< T, Elems, Resource >::value_type = typename vector_type::value_type

◆ vector_type

template<typename T , unsigned Elems, aie_dm_resource Resource>
using aie::vector_ref< T, Elems, Resource >::vector_type = vector<std::remove_const_t<elem_type>, Elems>

Constructor & Destructor Documentation

◆ vector_ref()

template<typename T , unsigned Elems, aie_dm_resource Resource>
constexpr aie::vector_ref< T, Elems, Resource >::vector_ref ( T *  ptr)
inlineconstexpr

Member Function Documentation

◆ operator vector_type()

template<typename T , unsigned Elems, aie_dm_resource Resource>
constexpr aie::vector_ref< T, Elems, Resource >::operator vector_type ( ) const
inlineconstexpr

◆ operator=()

template<typename T , unsigned Elems, aie_dm_resource Resource>
constexpr vector_ref & aie::vector_ref< T, Elems, Resource >::operator= ( const vector_type v)
inlineconstexpr

◆ size()

template<typename T , unsigned Elems, aie_dm_resource Resource>
static constexpr unsigned aie::vector_ref< T, Elems, Resource >::size ( )
inlinestaticconstexpr

The documentation for this class was generated from the following files: