alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::ScalarFunc< T_Func > Struct Template Reference

Marks a functor that can only be executed with scalar types and not SIMD packages. More...

#include <functor.hpp>

Inheritance diagram for alpaka::ScalarFunc< T_Func >:

Public Types

using Functor = T_Func

Public Member Functions

constexpr ScalarFunc (auto &&func)

Detailed Description

template<typename T_Func>
struct alpaka::ScalarFunc< T_Func >

Marks a functor that can only be executed with scalar types and not SIMD packages.

The functor will be executed element wise for SIMD packages due to methods used which prevent using SIMD packages directly.

Definition at line 38 of file functor.hpp.

Member Typedef Documentation

◆ Functor

template<typename T_Func>
using alpaka::ScalarFunc< T_Func >::Functor = T_Func

Definition at line 40 of file functor.hpp.

Constructor & Destructor Documentation

◆ ScalarFunc()

template<typename T_Func>
alpaka::ScalarFunc< T_Func >::ScalarFunc ( auto && func)
inlineconstexpr

Definition at line 42 of file functor.hpp.


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