Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
amdis-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
amdis
amdis-core
Merge requests
!53
add traits to test whether a dune matrix/vector has only one component
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add traits to test whether a dune matrix/vector has only one component
feature/scalar_matrix_vector_traits
into
master
Overview
0
Commits
1
Changes
1
Merged
Praetorius, Simon
requested to merge
feature/scalar_matrix_vector_traits
into
master
5 years ago
Overview
0
Commits
1
Changes
1
Expand
1
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
5e3791b5
1 commit,
5 years ago
1 file
+
16
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/amdis/common/FieldMatVec.hpp
+
16
−
0
Options
@@ -39,6 +39,15 @@ namespace Dune
template
<
class
T
,
int
N
>
struct
IsMatrix
<
DiagonalMatrix
<
T
,
N
>>
:
std
::
true_type
{};
template
<
class
T
>
struct
IsScalarMatrix
:
std
::
false_type
{};
template
<
class
T
>
struct
IsScalarMatrix
<
FieldMatrix
<
T
,
1
,
1
>>
:
std
::
true_type
{};
template
<
class
T
>
struct
IsScalarMatrix
<
DiagonalMatrix
<
T
,
1
>>
:
std
::
true_type
{};
template
<
class
T
>
struct
IsVector
:
std
::
false_type
{};
@@ -46,6 +55,13 @@ namespace Dune
template
<
class
T
,
int
N
>
struct
IsVector
<
FieldVector
<
T
,
N
>>
:
std
::
true_type
{};
template
<
class
T
>
struct
IsScalarVector
:
std
::
false_type
{};
template
<
class
T
>
struct
IsScalarVector
<
FieldVector
<
T
,
1
>>
:
std
::
true_type
{};
template
<
class
T
>
struct
IsMatVec
Loading