alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::ArrayStorage< T_Type, T_dim > Struct Template Reference

Array storge for vector data. More...

#include <Vec.hpp>

Inheritance diagram for alpaka::ArrayStorage< T_Type, T_dim >:

Public Types

using BaseType = std::array<T_Type, T_dim>
using type = T_Type

Public Member Functions

constexpr ArrayStorage (std::array< T_Type, T_dim > const &data)
template<typename... T_Args>
constexpr ArrayStorage (T_Args &&... args)

Detailed Description

template<typename T_Type, uint32_t T_dim>
struct alpaka::ArrayStorage< T_Type, T_dim >

Array storge for vector data.

This class is a workaround and is simply wrapping std::array. It is required because the dim in std::array in the template signature is size_t. This produces template deduction issues for math::Vec if we sue array as default storage without this wrapper.

Definition at line 98 of file Vec.hpp.

Member Typedef Documentation

◆ BaseType

template<typename T_Type, uint32_t T_dim>
using alpaka::ArrayStorage< T_Type, T_dim >::BaseType = std::array<T_Type, T_dim>

Definition at line 101 of file Vec.hpp.

◆ type

template<typename T_Type, uint32_t T_dim>
using alpaka::ArrayStorage< T_Type, T_dim >::type = T_Type

Definition at line 100 of file Vec.hpp.

Constructor & Destructor Documentation

◆ ArrayStorage() [1/2]

template<typename T_Type, uint32_t T_dim>
template<typename... T_Args>
alpaka::ArrayStorage< T_Type, T_dim >::ArrayStorage ( T_Args &&... args)
inlineconstexpr

Definition at line 106 of file Vec.hpp.

◆ ArrayStorage() [2/2]

template<typename T_Type, uint32_t T_dim>
alpaka::ArrayStorage< T_Type, T_dim >::ArrayStorage ( std::array< T_Type, T_dim > const & data)
inlineconstexpr

Definition at line 110 of file Vec.hpp.


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