Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dune-amdis
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Praetorius, Simon
dune-amdis
Commits
808865a7
Commit
808865a7
authored
Feb 26, 2019
by
Müller, Felix
Committed by
Praetorius, Simon
Feb 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed enum comparison
parent
9fd34292
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/amdis/common/FieldMatVec.inc.hpp
src/amdis/common/FieldMatVec.inc.hpp
+2
-2
No files found.
src/amdis/common/FieldMatVec.inc.hpp
View file @
808865a7
...
...
@@ -50,7 +50,7 @@ namespace MatVec {
std
::
enable_if_t
<
IsMatrix
<
Mat
>
::
value
&&
IsVector
<
Vec
>::
value
,
int
>>
auto
multiplies
(
Mat
const
&
mat
,
Vec
const
&
vec
)
{
static_assert
(
Mat
::
cols
==
Vec
::
dimension
,
""
);
static_assert
(
int
(
Mat
::
cols
)
==
int
(
Vec
::
dimension
)
,
""
);
using
T
=
std
::
common_type_t
<
typename
FieldTraits
<
Vec
>::
field_type
,
typename
FieldTraits
<
Mat
>::
field_type
>
;
FieldVector
<
T
,
Mat
::
rows
>
y
;
mat
.
mv
(
vec
,
y
);
...
...
@@ -62,7 +62,7 @@ namespace MatVec {
std
::
enable_if_t
<
IsVector
<
Vec
>
::
value
&&
IsMatrix
<
Mat
>::
value
,
int
>>
auto
multiplies
(
Vec
const
&
vec
,
Mat
const
&
mat
)
{
static_assert
(
Mat
::
rows
==
Vec
::
dimension
,
""
);
static_assert
(
int
(
Mat
::
rows
)
==
int
(
Vec
::
dimension
)
,
""
);
using
T
=
std
::
common_type_t
<
typename
FieldTraits
<
Vec
>::
field_type
,
typename
FieldTraits
<
Mat
>::
field_type
>
;
FieldVector
<
T
,
Mat
::
cols
>
y
;
mat
.
mtv
(
vec
,
y
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment