Compute Library
 20.11
Helpers.inl File Reference
#include "arm_compute/core/Error.h"
#include <cmath>
#include <numeric>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2020 Arm Limited.
 

Functions

template<typename L , typename... Ts>
void execute_window_loop (const Window &w, L &&lambda_function, Ts &&... iterators)
 Iterate through the passed window, automatically adjusting the iterators and calling the lambda_functino for each element. More...
 
Coordinates index2coords (const TensorShape &shape, int index)
 Convert a linear index into n-dimensional coordinates. More...
 
int coords2index (const TensorShape &shape, const Coordinates &coord)
 Convert n-dimensional coordinates into a linear index. More...
 
size_t get_data_layout_dimension_index (const DataLayout data_layout, const DataLayoutDimension data_layout_dimension)
 Get the index of the given dimension. More...
 
DataLayoutDimension get_index_data_layout_dimension (const DataLayout data_layout, const size_t index)
 Get the DataLayoutDimension of a given index and layout. More...