1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00
This commit is contained in:
Peter Boyle 2019-06-04 20:52:27 +01:00
parent 24bff6dbe6
commit 8794d35c78

View File

@ -64,7 +64,7 @@ public:
enum { TensorLevel = GridTypeMapper<vtype>::TensorLevel + 1 };
static constexpr accelerator_inline int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); }
static accelerator_inline constexpr int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); }
// Scalar no action
accelerator iScalar() = default;
@ -197,7 +197,7 @@ public:
// get double precision version
typedef iVector<typename GridTypeMapper<vtype>::DoublePrecision, N> DoublePrecision;
static constexpr accelerator_inline int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); }
static accelerator_inline constexpr int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); }
template <class T, typename std::enable_if<!isGridTensor<T>::value, T>::type * = nullptr>
accelerator_inline auto operator=(T arg) -> iVector<vtype, N> {
@ -308,7 +308,7 @@ public:
enum { TensorLevel = GridTypeMapper<vtype>::TensorLevel + 1 };
static constexpr accelerator_inline int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); }
static accelerator_inline constexpr int Nsimd(void) { return sizeof(vector_type)/sizeof(scalar_type); }
accelerator_inline iMatrix(const Zero &z) { zeroit(*this); };
accelerator iMatrix() = default;