octoback

Paris, France

C++/Qt software engineer. Python lover.

2d
awarded Necromancer
Jul
24
awarded Student
Jul
24
awarded Popular Question
Jul
24
asked What is a latency-bound and a memory-bound application in HPC?
Jul
21
revised NUMA vs. Mpi model?
edited tags
Jul
21
asked NUMA vs. Mpi model?
Jul
16
comment Find index of nearest in sorted vector
is - x here correct? with this expression, my tests are broken, so that they are not a substitute for the loop I have written. i would rather see smth in this flavor l_idx = std::upper_bound(x_vec.begin(), x_vec.end(), value) - x_vec.begin() - 1; but this is not compiling
Jul
16
accepted Find index of nearest in sorted vector
Jul
15
comment Find index of nearest in sorted vector
thanks, improved performance a lot now that i work on array
Jul
15
comment Find index of nearest in sorted vector
what is the syntax then? l_idx = std::upper_bound(x, x + x_size, value) - std::begin(x) - 1; is not compiling
Jul
15
revised Find index of nearest in sorted vector
added 170 characters in body
Jul
15
comment Find index of nearest in sorted vector
my program is more complex than call to this method, i dont know how much slower is this very method. i post my code in post
Jul
15
comment Find index of nearest in sorted vector
yes, it is in sorted vector and with your solution overall routine is 5x more time consuming than original mine
Jul
15
comment Find index of nearest in sorted vector
i am converting array to vector then using lower_bound, and it is dramatically worsening performance
Jul
15
revised Find index of nearest in sorted vector
edited title
Jul
15
comment Find index of nearest in sorted vector
I need in fact index of nearest neighbor, not value
Jul
15
answered Find index of nearest in sorted vector
Jul
15
revised Find index of nearest in sorted vector
added 46 characters in body
Jul
15
asked Find index of nearest in sorted vector
Jul
14
answered How does xeon differ from regular processors?
1 2 3 4 5