]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Move specialization 7760/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 27 Feb 2019 22:54:21 +0000 (23:54 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 27 Feb 2019 22:54:21 +0000 (23:54 +0100)
include/deal.II/base/numbers.h

index fca6430fd267776f39a276b03a471d6aecaae3f2..60396a2af539adbd4a243d69a4e1a67510542f2a 100644 (file)
@@ -174,6 +174,13 @@ namespace numbers
   struct is_cuda_compatible : std::true_type
   {};
 
+  /**
+   * std::complex cannot be used in CUDA device code.
+   */
+  template <typename Number>
+  struct is_cuda_compatible<std::complex<Number>, void> : std::false_type
+  {};
+
   /**
    * Check whether a value is not a number.
    *
@@ -443,12 +450,6 @@ namespace numbers
 
   // --------------- inline and template functions ---------------- //
 
-  template <typename Number>
-  struct is_cuda_compatible<std::complex<Number>, void> : std::false_type
-  {};
-
-
-
   inline bool
   is_nan(const double x)
   {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.