Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
bdf4739a
Commit
bdf4739a
authored
Dec 04, 2018
by
Praetorius, Simon
Browse files
added negation operator for FieldMatrix
parent
746bb31d
Changes
2
Show whitespace changes
Inline
Side-by-side
src/amdis/common/FieldMatVec.hpp
View file @
bdf4739a
...
...
@@ -197,6 +197,9 @@ namespace Dune
template
<
class
T
,
int
M
,
int
N
>
FieldMatrix
<
T
,
N
,
M
>
trans
(
FieldMatrix
<
T
,
M
,
N
>
const
&
A
);
template
<
class
T
,
int
M
,
int
N
>
FieldMatrix
<
T
,
M
,
N
>
operator
-
(
FieldMatrix
<
T
,
M
,
N
>
A
);
template
<
class
T
,
int
M
,
int
N
,
class
S
,
std
::
enable_if_t
<
std
::
is_convertible
<
S
,
T
>
::
value
,
int
>
=
0
>
...
...
src/amdis/common/FieldMatVec.inc.hpp
View file @
bdf4739a
...
...
@@ -349,6 +349,11 @@ FieldMatrix<T,N,M> trans(FieldMatrix<T, M, N> const& A)
return
At
;
}
template
<
class
T
,
int
M
,
int
N
>
FieldMatrix
<
T
,
M
,
N
>
operator
-
(
FieldMatrix
<
T
,
M
,
N
>
A
)
{
return
A
*=
-
1
;
}
template
<
class
T
,
int
M
,
int
N
,
class
S
,
std
::
enable_if_t
<
std
::
is_convertible
<
S
,
T
>
::
value
,
int
>>
...
...
Write
Preview
Supports
Markdown
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