Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Timo Koch
dune-common
Commits
5759fdf5
Commit
5759fdf5
authored
19 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
rearranged the #ifdef blocks such that doxygen doen't get confused anymore
[[Imported from SVN: r2464]]
parent
d92620ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/fvector.hh
+20
-2
20 additions, 2 deletions
common/fvector.hh
with
20 additions
and
2 deletions
common/fvector.hh
+
20
−
2
View file @
5759fdf5
...
...
@@ -553,6 +553,7 @@ namespace Dune {
};
#endif
#ifdef DUNE_EXPRESSIONTEMPLATES
/** \brief Construct a vector space out of a tensor product of fields.
K is the field type (use float, double, complex, etc) and n
...
...
@@ -563,10 +564,22 @@ namespace Dune {
Implementation of all members uses template meta programs where appropriate
*/
#else
template
<
class
K
,
int
SIZE
>
class
FieldVector
#ifdef DUNE_EXPRESSIONTEMPLATES
:
public
Dune
::
ExprTmpl
::
Vector
<
FieldVector
<
K
,
SIZE
>
>
/** \brief Construct a vector space out of a tensor product of fields.
K is the field type (use float, double, complex, etc) and n
is the number of components.
It is generally assumed that K is a numerical type compatible with double
(E.g. norms are always computed in double precision).
Implementation of all members uses template meta programs where appropriate
*/
template
<
class
K
,
int
SIZE
>
class
FieldVector
#endif
{
//! The actual number of elements that gets allocated.
...
...
@@ -902,12 +915,17 @@ namespace Dune {
// forward declarations
template
<
class
K
,
int
n
,
int
m
>
class
FieldMatrix
;
#ifdef DUNE_EXPRESSIONTEMPLATES
/**! Vectors containing only one component
*/
template
<
class
K
>
class
FieldVector
<
K
,
1
>
#ifdef DUNE_EXPRESSIONTEMPLATES
:
public
Dune
::
ExprTmpl
::
Vector
<
FieldVector
<
K
,
1
>
>
#else
/**! Vectors containing only one component
*/
template
<
class
K
>
class
FieldVector
<
K
,
1
>
#endif
{
enum
{
n
=
1
};
...
...
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