Tensor
A C++ expression template library for computations on N dimensional tensors
Classes | Functions
ftl::detail Namespace Reference

Classes

struct  MapToIndexStatic
 Takes a list of indices and a list of dimension sizes, and determines the offset of an element given by the indices, in contiguous memory. More...
 
struct  MapToIndexStatic< DimSizes >
 
struct  MapToIndexStatic< DimSizes, IF, IR...>
 

Functions

template<size_t Iteration, typename Container >
size_t MapToIndexDynamic (const Container &dim_sizes, size_t current_offset)
 
template<size_t Iteration, typename Container , typename IF , typename... IR>
size_t MapToIndexDynamic (const Container &dim_sizes, size_t current_offset, IF index_first, IR...indices_rest)
 

Function Documentation

template<size_t Iteration, typename Container >
size_t ftl::detail::MapToIndexDynamic ( const Container &  dim_sizes,
size_t  current_offset 
)
template<size_t Iteration, typename Container , typename IF , typename... IR>
size_t ftl::detail::MapToIndexDynamic ( const Container &  dim_sizes,
size_t  current_offset,
IF  index_first,
IR...  indices_rest 
)