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
CoMISo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CoMISo
CoMISo
Commits
e6a36f98
Commit
e6a36f98
authored
Oct 20, 2020
by
Martin Marinov
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
253d7417
' into marinom/merge-from-ReForm
parents
66b436b4
253d7417
Pipeline
#15406
passed with stages
in 4 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Utils/Tools.hh
Utils/Tools.hh
+3
-3
No files found.
Utils/Tools.hh
View file @
e6a36f98
...
...
@@ -75,15 +75,15 @@ inline double round_residue(const double _x)
}
//! get if _x is rounded within _tol
inline
double
rounded
(
const
double
_x
,
const
double
_tol
)
inline
bool
is_
rounded
(
const
double
_x
,
const
double
_tol
)
{
return
round_residue
(
_x
)
<=
_tol
;
}
//! compare two double values within _tol
inline
bool
same
(
const
double
_x
,
const
double
_y
,
const
double
_tol
)
inline
bool
are_
same
(
const
double
_x
,
const
double
_y
,
const
double
_tol
)
{
return
fabs
(
_x
-
_y
)
<
_tol
;
return
fabs
(
_x
-
_y
)
<
=
_tol
;
}
//! get _a * _a
...
...
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