Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

template<class ArrayT>
ArrayT* Impala::Core::Matrix::MatNorm2Dist ( ArrayT *  a,
ArrayT *  b 
) [inline]

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:


Generated on Thu Jan 13 09:20:14 2011 for ImpalaSrc by  doxygen 1.5.1