Compute Library  18.05
Utility.h File Reference
#include <algorithm>
#include <array>
#include <limits>
#include <numeric>
#include <vector>

Go to the source code of this file.

Namespaces

 arm_compute
 This file contains all available output stages for GEMMLowp on OpenCL.
 
 arm_compute::utility
 
 arm_compute::utility::detail
 

Functions

template<std::size_t... S, typename Iterator , typename T = std::array<typename std::iterator_traits<Iterator>::value_type, sizeof...(S)>>
make_array (Iterator first, index_sequence< S... >)
 
template<std::size_t N, typename Iterator >
std::array< typename std::iterator_traits< Iterator >::value_type, N > make_array (Iterator first, Iterator last)
 
template<typename T >
clamp (const T &n, const T &lower, const T &upper)
 Performs clamping among a lower and upper value. More...
 
template<typename F >
void for_each (F &&)
 Base case of for_each. More...
 
template<typename F , typename T , typename... Ts>
void for_each (F &&func, T &&arg, Ts &&...args)
 Call the function for each of the arguments. More...
 
template<typename F , typename T >
T && foldl (F &&, T &&value)
 Base case of foldl. More...
 
template<typename F , typename T , typename U , typename... Us>
auto foldl (F &&func, T &&initial, U &&value, Us &&...values) -> decltype(func(std::forward< T >(initial), std::forward< U >(value)))
 Fold left. More...
 
template<typename T , typename U >
saturate_cast (U val)
 Type cast with saturation. More...
 
template<typename T >
std::vector< size_t > sort_indices (const std::vector< T > &v)
 Perform an index sort of a given vector. More...
 
bool endswith (const std::string &filename, const std::string &suffix)