template<class Type>
left and right denote the boundaries between wich the elements will be reverse so, normally they will be 0 and size-1 respectively
Definition at line 15 of file Reverse.h. Referenced by Impala::Core::Training::AreaUnderRocCurve::ComputeReverse(), Impala::Core::Training::BalancedAveragePrecision::ComputeReversed(), Impala::Core::Training::AveragePrecision::ComputeReversed(), Impala::Core::Table::Reverse(), Impala::Core::Column::Reverse(), Impala::Core::Array::Reverse(), and Impala::Core::Column::ReversePart(). 00016 { 00017 while(left<right) 00018 { 00019 Type temp; 00020 temp = data[left]; 00021 data[left] = data[right]; 00022 data[right] = temp; 00023 ++left; 00024 --right; 00025 } 00026 }
|