Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
ae8ee53e
There was an error fetching the commit references. Please try again later.
Commit
ae8ee53e
authored
5 years ago
by
Jakub Klinkovský
Committed by
Tomáš Oberhuber
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed expression in static_assert in SparseMatrix.h
parent
79c1e841
No related branches found
No related tags found
1 merge request
!48
Segments
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/TNL/Matrices/SparseMatrix.h
+5
-4
5 additions, 4 deletions
src/TNL/Matrices/SparseMatrix.h
with
5 additions
and
4 deletions
src/TNL/Matrices/SparseMatrix.h
+
5
−
4
View file @
ae8ee53e
...
...
@@ -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_
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment