Skip to content
Snippets Groups Projects
Commit 8fbce1ed authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

More precise debugging info

parent d7234806
No related branches found
No related tags found
No related merge requests found
......@@ -240,7 +240,7 @@ void testSampleFunction() {
SampleFunctional::SmallVector correction = J.minimise(start, 20);
assert(J(start + correction) <= J(start));
assert(std::abs(J(start + correction) + 0.254644) < 1e-8);
std::cout << J(start + correction) << std::endl;
std::cout << "Arrived at J(...) = " << J(start + correction) << std::endl;
}
void testTrivialFunction() {
......@@ -266,7 +266,7 @@ void testTrivialFunction() {
SampleFunctional::SmallVector correction = J.minimise(start, 20);
assert(J(start + correction) <= J(start));
assert(std::abs(J(start + correction) + 0.83333333) < 1e-8);
std::cout << J(start + correction) << std::endl;
std::cout << "Arrived at J(...) = " << J(start + correction) << std::endl;
}
int main() {
......
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