Skip to content
Snippets Groups Projects
Commit 6628548f authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

Fix index bug

[[Imported from SVN: r9187]]
parent 4e61c213
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ class HyperbolicHalfspacePoint
dFdpdq[i][j] = -(p[i] - q[i]) / (p[N-1]*q[N-1]*q[N-1]);
} else if (i!=N-1 and j==N-1) {
} else if (i==N-1 and j!=N-1) {
dFdpdq[i][j] = (p[j] - q[j]) / (p[N-1]*p[N-1]*q[N-1]);
......@@ -141,7 +141,7 @@ class HyperbolicHalfspacePoint
dFdqdq[i][j] = (p[i] - q[i]) / (p[N-1]*q[N-1]*q[N-1]);
} else if (i!=N-1 and j==N-1) {
} else if (i==N-1 and j!=N-1) {
dFdqdq[i][j] = (p[j] - q[j]) / (p[N-1]*q[N-1]*q[N-1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment