constexpr DEAL_II_CUDA_HOST_DEV
Tensor(const Tensor<0, dim, OtherNumber> &initializer);
+#if __GNUC__ >= 11 || defined __INTEL_COMPILER
/**
* Constructor, where the data is copied from a C-style array.
*
*/
constexpr DEAL_II_CUDA_HOST_DEV Tensor<0, dim, Number> &
operator=(Tensor<0, dim, Number> &&other) noexcept;
+#endif
/**
* Return a pointer to the first element of the underlying storage.
constexpr
operator Tensor<1, dim, Tensor<rank_ - 1, dim, OtherNumber>>() const;
+#if __GNUC__ >= 11 || defined __INTEL_COMPILER
/**
* Copy constructor
*/
*/
constexpr Tensor<rank_, dim, Number> &
operator=(Tensor<rank_, dim, Number> &&) noexcept;
+#endif
/**
* Read-Write access operator.
+# if __GNUC__ >= 11 || defined __INTEL_COMPILER
template <int dim, typename Number>
constexpr DEAL_II_ALWAYS_INLINE DEAL_II_CUDA_HOST_DEV
Tensor<0, dim, Number>::Tensor(const Tensor<0, dim, Number> &other)
value = std::move(other.value);
return *this;
}
+# endif
}
+# if __GNUC__ >= 11 || defined __INTEL_COMPILER
template <int rank_, int dim, typename Number>
constexpr DEAL_II_ALWAYS_INLINE
Tensor<rank_, dim, Number>::Tensor(const Tensor<rank_, dim, Number> &other)
values[i] = other.values[i];
return *this;
}
+# endif
namespace internal