Skip to content

Instantly share code, notes, and snippets.

@bayerj
Created June 9, 2009 15:07
Show Gist options
  • Save bayerj/126567 to your computer and use it in GitHub Desktop.
Save bayerj/126567 to your computer and use it in GitHub Desktop.
double* derivs_p = get_derivatives();
for (int i = 0; i < outdim; i++)
{
for (int j = 0; j < indim; j++)
{
derivs_p[i * indim + j] += source_p[i] * input_p[j];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment