Commit ae8ee53e authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Tomáš Oberhuber
Browse files

Fixed expression in static_assert in SparseMatrix.h

parent 79c1e841
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -34,10 +34,11 @@ class SparseMatrix : public Matrix< Real, Device, Index, RealAllocator >
      static constexpr bool isSymmetric() { return MatrixType::isSymmetric(); };
      static constexpr bool isBinary() { return MatrixType::isBinary(); };

      static_assert( ! isSymmetric() ||
      static_assert(
            ! isSymmetric() ||
            ! std::is_same< Device, Devices::Cuda >::value ||
               ( ( std::is_same< Real, float >::value || std::is_same< Real, double >::value || std::is_same< Real, int >::value || std::is_same< Real, long long int >::value ),
              "Given Real type is not supported by atomic operations on GPU which are necessary for symmetric operations." ) );
            ( std::is_same< Real, float >::value || std::is_same< Real, double >::value || std::is_same< Real, int >::value || std::is_same< Real, long long int >::value ),
            "Given Real type is not supported by atomic operations on GPU which are necessary for symmetric operations." );

      using RealType = Real;
      template< typename Device_, typename Index_, typename IndexAllocator_ >