The Scientific World Journal / 2014 / Article / Alg 7

Research Article

PEM-PCA: A Parallel Expectation-Maximization PCA Face Recognition Architecture

Algorithm 7

Matrix Operation for Generalized Euclidean Distance.
Input:  Matrix  A,  Matrix  B
Output:  Matrix  result
(1)  for  row  from  1  to  A_Rows
(2)sum  =  0.0;
(3)for  col  from  1  to  A_Cols
(4)       +=   ;
(5)endfor
(6)result[row]  =  sum;
(7)  endfor
(8)  return  result;