Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!48Segments
......@@ -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() ||
! 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." ) );
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." );
using RealType = Real;
template< typename Device_, typename Index_, typename IndexAllocator_ >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment