Definition at line 46 of file Apply.h. References Impala::Core::Vector::VectorTem< ElemT >::GetData(), Impala::Core::Vector::VectorSet< ArrayT >::GetVector(), Impala::Core::Vector::VectorSet< ArrayT >::GetVectorLength(), ILOG_DEBUG, ILOG_ERROR, ILOG_VAR, Impala::Core::Vector::VectorTem< ElemT >::Size(), and Impala::Core::Vector::VectorSet< ArrayT >::Size(). 00049 { 00050 ILOG_VAR(Core.Vector.Kernelise); 00051 00052 int size = set->Size(); 00053 ILOG_DEBUG("size = " << size); 00054 if(size != dst->Size()) 00055 ILOG_ERROR("sizes of dst and set don't match: "<<dst->Size()<<"!="<<size); 00056 if(set->GetVectorLength(0) != src.Size()) 00057 ILOG_ERROR("sizes of src and set feature length don't match: "<<src.Size()<<"!="<<set->GetVectorLength(0)); 00058 00059 double *ptr = dst->GetData(); 00060 for(int row=0 ; row<size ; ++row) 00061 { 00062 VectorTem<double> v1(set->GetVector(row, true)); 00063 *ptr = (*fn)(v1, src); 00064 ++ptr; 00065 } 00066 }
Here is the call graph for this function:
|