/*
 * File: power.c
 *
 * MATLAB Coder version            : 3.4
 * C/C++ source code generated on  : 27-Feb-2019 07:33:34
 */

/* Include Files */
#include "rt_nonfinite.h"
#include "MLS.h"
#include "power.h"
#include "MLS_emxutil.h"

/* Function Definitions */

/*
 * Arguments    : const emxArray_real_T *a
 *                emxArray_real_T *y
 * Return Type  : void
 */
void power(const emxArray_real_T *a, emxArray_real_T *y)
{
  int nx;
  unsigned int a_idx_0;
  int k;
  nx = y->size[0] * y->size[1];
  y->size[0] = a->size[0];
  y->size[1] = 2;
  emxEnsureCapacity_real_T(y, nx);
  a_idx_0 = (unsigned int)a->size[0];
  nx = (int)a_idx_0 << 1;
  for (k = 0; k + 1 <= nx; k++) {
    y->data[k] = a->data[k] * a->data[k];
  }
}

/*
 * File trailer for power.c
 *
 * [EOF]
 */
