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