quinngroup / dr1dl-pyspark

Dictionary Learning in PySpark
Apache License 2.0
1 stars 1 forks source link

the STD:: #8

Closed MOJTABAFA closed 8 years ago

MOJTABAFA commented 8 years ago

Dear xiang :

Thanks for your prev. comment , Now I found that in function op_selectTopR we're trying to create a new vector in which the value of elements are greater than N Am I right ?

if yes, would you please let me know whats the role of following instruction? std::nth_element(tmp.begin(), tmp.begin()+R, tmp.end(), std::greater());