STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Static Public Member Functions
stapl::skeletons::optimizers::optimizer< tags::zip< Tag, arity >, tags::sequential_execution > Struct Template Reference

A zip optimizer is used in the cases that all views are local and their traversal would be fast which improves the performance. You have to notice that the inner vector creation takes some time and you have to consider it before using this optimizer. More...

Static Public Member Functions

template<typename R , typename S , typename... Args>
static R execute (S &&skeleton, Args &&... args)
 Sequential zip optimizer dispatches the execution to two different signatures based on the requirement of the given zip operation. If the zip operations needs the paragraph_view, the dynamic specialization is called, otherwise the non_dynamic one is called. More...
 

Detailed Description

template<typename Tag, int arity>
struct stapl::skeletons::optimizers::optimizer< tags::zip< Tag, arity >, tags::sequential_execution >

A zip optimizer is used in the cases that all views are local and their traversal would be fast which improves the performance. You have to notice that the inner vector creation takes some time and you have to consider it before using this optimizer.

Member Function Documentation

◆ execute()

template<typename Tag , int arity>
template<typename R , typename S , typename... Args>
static R stapl::skeletons::optimizers::optimizer< tags::zip< Tag, arity >, tags::sequential_execution >::execute ( S &&  skeleton,
Args &&...  args 
)
static

Sequential zip optimizer dispatches the execution to two different signatures based on the requirement of the given zip operation. If the zip operations needs the paragraph_view, the dynamic specialization is called, otherwise the non_dynamic one is called.

Returns
the result of the zip operation (can be void)

The documentation for this struct was generated from the following file: