Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 79e91377 authored by Théotime Grohens's avatar Théotime Grohens Committed by David Parsons
Browse files

Add comment in Fuzzy::add_point

parent b6bc0cd9
No related branches found
No related tags found
No related merge requests found
......@@ -476,12 +476,14 @@ void Fuzzy::clear() {
void Fuzzy::add_point(ProteinConcentration x, ProteinConcentration y)
{
// Don't add a new point if there's already a point at the same x.
list<Point>::iterator p =
#ifndef __OPENMP_GPU
find_if(points_.begin(), points_.end(), [x](Point& q){return q.x > x;});
#else
algorithm_cuda::find_if_point_5(points_.begin(), points_.end(), x);
#endif
if (prev(p)->x == x) {
prev(p)->y += y;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment