template<class ArrayT>
Definition at line 158 of file MatNorm2Dist.h. References ILOG_ERROR, ILOG_VAR, MatNorm2DistInternal(), MatNrRow(), and MatTranspose(). Referenced by Impala::Core::Test::TestMatNorm2Dist::Run(). 00159 { 00160 /* 00161 Computes Euclidean distance matrix 00162 00163 E = MatNorm2Dist(A,B) 00164 00165 A - (DxM) matrix 00166 B - (DxN) matrix 00167 00168 Returns: 00169 E - (MxN) Euclidean distances between vectors in A and B 00170 */ 00171 ILOG_VAR(Core.Matrix.MatNorm2Dist); 00172 if (MatNrRow(a) != MatNrRow(b)) { 00173 ILOG_ERROR("MatNorm2Dist operands: A and B should be of same dimensionality"); 00174 } 00175 Mat* aT = MatTranspose(a); 00176 ArrayT* result = MatNorm2DistInternal(aT, b); 00177 delete aT; 00178 return result; 00179 }
Here is the call graph for this function:
|