42 #include "Sacado_cmath.hpp" 46 #include <math_functions.h> 49 #define OPNAME operator+ 55 #define OPNAME operator- 137 #define OPNAME operator+ 143 #define OPNAME operator- 149 #define OPNAME operator* 155 #define OPNAME operator/ 187 #define MP_RELOP_MACRO(OP) \ 191 template <typename O, typename T, int N, typename D> \ 192 KOKKOS_INLINE_FUNCTION \ 194 operator OP (const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& a, \ 195 const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& b) \ 197 return a.val() OP b.val(); \ 200 template <typename O, typename T, int N, typename D> \ 201 KOKKOS_INLINE_FUNCTION \ 203 operator OP (const typename Vector< Stokhos::StaticFixedStorage<O,T,N,D> >::value_type& a, \ 204 const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& b) \ 206 return a OP b.val(); \ 209 template <typename O, typename T, int N, typename D> \ 210 KOKKOS_INLINE_FUNCTION \ 212 operator OP (const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& a, \ 213 const typename Vector< Stokhos::StaticFixedStorage<O,T,N,D> >::value_type& b) \ 215 return a.val() OP b; \ 231 #undef MP_RELOP_MACRO 237 template <
typename O,
typename T,
int N,
typename D>
238 KOKKOS_INLINE_FUNCTION
254 template <
typename O,
typename T,
int N,
typename D>
255 KOKKOS_INLINE_FUNCTION
258 for (
int i=0; i<
x.size(); i++)
259 is_zero = is_zero && (
x.coeff(i) == 0.0);
267 #define PCE_BOOL_MACRO(OP) \ 271 template <typename O, typename T, int N, typename D> \ 272 KOKKOS_INLINE_FUNCTION \ 274 operator OP (const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& a, \ 275 const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& b) \ 277 return toBool(a) OP toBool(b); \ 280 template <typename O, typename T, int N, typename D> \ 281 KOKKOS_INLINE_FUNCTION \ 283 operator OP (const typename Vector< Stokhos::StaticFixedStorage<O,T,N,D> >::value_type& a, \ 284 const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& b) \ 286 return a OP toBool(b); \ 289 template <typename O, typename T, int N, typename D> \ 290 KOKKOS_INLINE_FUNCTION \ 292 operator OP (const Vector< Stokhos::StaticFixedStorage<O,T,N,D> >& a, \ 293 const typename Vector< Stokhos::StaticFixedStorage<O,T,N,D> >::value_type& b) \ 295 return toBool(a) OP b; \ 303 #undef PCE_BOOL_MACRO
Statically allocated storage class.
KOKKOS_INLINE_FUNCTION bool toBool(const Expr< T > &xx)
KOKKOS_INLINE_FUNCTION bool operator!(const Expr< T > &expr)
const IndexType const IndexType const IndexType const IndexType const ValueType const ValueType * x
#define MP_RELOP_MACRO(OP)
#define PCE_BOOL_MACRO(OP)