gridloop1 in C++

void gridloop1(MyArray<double>& a, 
	       const MyArray<double>& xcoor,
	       const MyArray<double>& ycoor,
	       Fxy func1)
{
  int nx = a.shape(1), ny = a.shape(2);
  int i, j;
  for (i = 0; i < nx; i++) {
    for (j = 0; j < ny; j++) {
      a(i,j) = func1(xcoor(i), ycoor(j));
    }
  }
}

previousnexttable of contents