Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-xt
Commits
f4cc8780
Commit
f4cc8780
authored
7 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
[vector-interface] deprecate dim(), use size() instead!
parent
1aee8bb0
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
dune/xt/la/container/vector-interface.hh
+9
-14
9 additions, 14 deletions
dune/xt/la/container/vector-interface.hh
with
9 additions
and
14 deletions
dune/xt/la/container/vector-interface.hh
+
9
−
14
View file @
f4cc8780
...
@@ -158,12 +158,7 @@ public:
...
@@ -158,12 +158,7 @@ public:
return
this
->
as_imp
()[
ii
];
return
this
->
as_imp
()[
ii
];
}
}
/**
inline
size_t
DUNE_DEPRECATED_MSG
(
"Use size() instead (09.04.2018)!"
)
dim
()
const
* \brief The dimension of the vector.
* \return The dimension of the vector.
* \see size()
*/
inline
size_t
dim
()
const
{
{
return
size
();
return
size
();
}
}
...
@@ -209,10 +204,10 @@ public:
...
@@ -209,10 +204,10 @@ public:
/**
/**
* \brief Check vectors for equality.
* \brief Check vectors for equality.
* Equality of two vectors is defined as in Dune::FloatCmp componentwise.
* Equality of two vectors is defined as in Dune::FloatCmp componentwise.
* \param other A vector of same
dimension
to compare with.
* \param other A vector of same
size
to compare with.
* \param epsilon See Dune::FloatCmp.
* \param epsilon See Dune::FloatCmp.
* \return Truth value of the comparison.
* \return Truth value of the comparison.
* \see Dune::
XT::
Common::FloatCmp
* \see Dune::Common::FloatCmp
* \note If you override this method please use exceptions instead of assertions (for the python bindings).
* \note If you override this method please use exceptions instead of assertions (for the python bindings).
*/
*/
virtual
bool
almost_equal
(
const
derived_type
&
other
,
virtual
bool
almost_equal
(
const
derived_type
&
other
,
...
@@ -228,10 +223,10 @@ public:
...
@@ -228,10 +223,10 @@ public:
/**
/**
* \brief Check vectors for equality (variant for arbitrary derived combinations).
* \brief Check vectors for equality (variant for arbitrary derived combinations).
* Equality of two vectors is defined as in Dune::FloatCmp componentwise.
* Equality of two vectors is defined as in Dune::FloatCmp componentwise.
* \param other A vector of same
dimension
to compare with.
* \param other A vector of same
size
to compare with.
* \param epsilon See Dune::FloatCmp.
* \param epsilon See Dune::FloatCmp.
* \return Truth value of the comparison.
* \return Truth value of the comparison.
* \see Dune::
XT::
Common::FloatCmp
* \see Dune::Common::FloatCmp
*/
*/
template
<
class
T
>
template
<
class
T
>
bool
almost_equal
(
const
VectorInterface
<
T
>&
other
,
bool
almost_equal
(
const
VectorInterface
<
T
>&
other
,
...
@@ -475,7 +470,7 @@ public:
...
@@ -475,7 +470,7 @@ public:
/**
/**
* \brief Check vectors for equality (componentwise) using almost_equal()
* \brief Check vectors for equality (componentwise) using almost_equal()
* \param other A vector of same
dimension
to compare with.
* \param other A vector of same
size
to compare with.
* \return Truth value of the comparison.
* \return Truth value of the comparison.
* \see almost_equal()
* \see almost_equal()
*/
*/
...
@@ -486,7 +481,7 @@ public:
...
@@ -486,7 +481,7 @@ public:
/**
/**
* \brief Check vectors for inequality using !almost_equal()
* \brief Check vectors for inequality using !almost_equal()
* \param other A vector of same
dimension
to compare with.
* \param other A vector of same
size
to compare with.
* \return Truth value of the comparison.
* \return Truth value of the comparison.
*/
*/
virtual
bool
operator
!=
(
const
derived_type
&
other
)
const
virtual
bool
operator
!=
(
const
derived_type
&
other
)
const
...
@@ -517,8 +512,8 @@ public:
...
@@ -517,8 +512,8 @@ public:
operator
std
::
vector
<
ScalarType
>
()
const
operator
std
::
vector
<
ScalarType
>
()
const
{
{
std
::
vector
<
ScalarType
>
ret
(
dim
());
std
::
vector
<
ScalarType
>
ret
(
this
->
size
());
for
(
size_t
ii
=
0
;
ii
<
dim
();
++
ii
)
for
(
size_t
ii
=
0
;
ii
<
this
->
size
();
++
ii
)
ret
[
ii
]
=
this
->
operator
[](
ii
);
ret
[
ii
]
=
this
->
operator
[](
ii
);
return
ret
;
return
ret
;
}
}
...
...
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