AI Engine API User Guide (AIE-API) 2024.1
Loading...
Searching...
No Matches
utils.hpp File Reference

Detailed Description

Utilities exposed to users.

#include "aie.hpp"
#include "vector.hpp"
#include <cstdio>
#include <cmath>
#include <limits>
#include <utility>

Namespaces

namespace  aie
 Base namespace for AIE operations and types.
 

Macros

#define __AIE_API_UTILS__HPP__
 
#define AIE_API_CXX_VERSION   202002L
 

Functions

template<unsigned N>
void aie::print (const aie::mask< N > &m, bool nl=false, const char *prefix=nullptr)
 Displays the contents of a mask.
 
template<typename C >
requires (Vector<C> || Accum<C>)
void aie::print (const C &c, bool nl=false, const char *prefix=nullptr)
 Displays the contents of a vector or an accumulator.
 
template<typename T , unsigned Elems>
requires (!detail::is_floating_point_v<T>)
void aie::print_fixed (const aie::vector< T, Elems > &v, int scale, bool nl=false, const char *prefix=nullptr)
 Displays the contents of a vector integers represented as real numbers in fixed point.
 
template<typename Matrix >
requires (Vector<Matrix> || Accum<Matrix>)
void aie::print_matrix (const Matrix &m, unsigned cols, const char *prefix=nullptr)
 Displays the contents of a vector or accumulator, arranged in a matrix layout.
 

Macro Definition Documentation

◆ __AIE_API_UTILS__HPP__

#define __AIE_API_UTILS__HPP__

◆ AIE_API_CXX_VERSION

#define AIE_API_CXX_VERSION   202002L