template<class ArrayT>
Definition at line 40 of file Min.h. References Impala::Core::Vector::VectorSet< ArrayT >::GetVector(), Impala::Core::Vector::VectorSet< ArrayT >::GetVectorLength(), Impala::Core::Vector::VectorSet< ArrayT >::HasConstVectorSize(), and MinAssign(). Referenced by Impala::Application::Table::DoScaleFeatureTable(). 00042 { 00043 typedef typename VectorSet<ArrayT>::VectorT VectorT; 00044 00045 if (!src->HasConstVectorSize()) 00046 { 00047 std::cout << "Vector::Min: works for constant vector size only" << std::endl; 00048 return; 00049 } 00050 VectorT res(src->GetVectorLength(0)); 00051 res = 99999999999999.9; 00052 for (int i=0 ; i<size ; i++) 00053 if (!filter || filter[i]) 00054 MinAssign(res, src->GetVector(i, true)); 00055 if (!dst) 00056 dst = new VectorT(res); 00057 else 00058 *dst = res; 00059 }
Here is the call graph for this function:
|