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
253d7417
Commit
253d7417
authored
Oct 20, 2020
by
Martin Marinov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the predicates in the Tools.hh
parent
46e532f8
Changes
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 @
253d7417
...
...
@@ -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
...
...
Martin Marinov
@mmarinov
mentioned in commit
e6a36f98
·
Oct 20, 2020
mentioned in commit
e6a36f98
mentioned in commit e6a36f980e8dc0b10c209fdb1547cbab697c7f33
Toggle commit list
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