/************************************************************************
 *                                                                      *
 * Copyright (c) 2007 Synfora, Inc.  All rights reserved.               *
 *                                                                      *
 * This file contains Confidential Information of Synfora, Inc.         *
 * In addition, certain inventions disclosed in this file may be        *
 * claimed within patents owned or patent applications filed by         *
 * Synfora or third parties.  Any use of Synfora's copyrighted works,   *
 * confidential information, patented inventions, or patent-pending     *
 * inventions is subject to the terms and conditions of your written    *
 * license agreement with Synfora, Inc.                                 *
 * All other use and disclosure is strictly prohibited.                 *
 *                                                                      *
 ************************************************************************/

#include "pico.h"
#include "example.h"


unsigned char A[M][N];
unsigned char B[L][M][N];
char x, y, output_num;

void ppa(void) {
  int i, j;
  unsigned char temp[M][N];
  
  for (i=0; i < M; i++) {
    for (j=0; j < N; j++) {
      temp[i][j] = x * A[i][j] * A[i][j];
    }
  }
  for (i=0; i < N; i++) {
    for (j=0; j < M; j++) {
      B[output_num][j][i] = y * temp[j][i] * temp[i][j];
    }
  }
}

