Skip to content

Instantly share code, notes, and snippets.

@pyfisch
Created January 15, 2018 11:40
Show Gist options
  • Select an option

  • Save pyfisch/ab6671e199265279274d3db28805de19 to your computer and use it in GitHub Desktop.

Select an option

Save pyfisch/ab6671e199265279274d3db28805de19 to your computer and use it in GitHub Desktop.
for (int i = 0; i < q; i++) {
for (int j = 0; j < q; j++) {
int I = q * coords[0] + i;
int J = q * coords[1] + j;
mat[i * q + j] = I * dim + J;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment