The Scientific World Journal / 2014 / Article / Alg 3

Research Article

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

Algorithm 3

Parallel matrix multiplication with a constant number computation.
Input:  Matrix  input,  Double  constant
Output:  Matrix  result
(1)     //  Matrix  Multiplication
(2)     parallel  for  i  from  0  to  rows
(3)  for  j  from  0  to  cols
(4)    Multiplication:   ;
(5)  endfor
(6)     endfor
(7)
(8)     //Matrix  Division
(9)     parallel  for  i  from  0  to  rows
(10)for   j  from  0  to  cols
(11)   Division:   ;
(12)endfor
(13)  endfor
(14)  return  result;