12#ifndef CABANA_TYPETRAITS_HPP
13#define CABANA_TYPETRAITS_HPP
15#include <Kokkos_Core.hpp>
30 static_assert( N > 0,
"Vector length must be greater than 0" );
31 static constexpr bool value = ( ( N & ( N - 1 ) ) == 0 );
40 static_assert( IsPowerOfTwo<N>::value,
41 "Vector length must be a power of two" );
42 static constexpr int value = 1 + LogBase2<( N >> 1U )>::value;
48 static constexpr int value = 0;
54struct IsVectorLengthValid
56 static constexpr bool value = ( IsPowerOfTwo<N>::value && N > 0 );
KOKKOS_INLINE_FUNCTION std::enable_if_t< 3==SplineDataType::num_space_dim, void > value(const ViewType &view, const SplineDataType &sd, PointDataType &result, typename std::enable_if<(std::rank< PointDataType >::value==0), void * >::type=0)
Interpolate a scalar value to a point. 3D specialization.
Definition Cabana_Grid_Interpolation.hpp:56
Core: particle data structures and algorithms.
Definition Cabana_AoSoA.hpp:36