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

Cleanup

parent 9ade0fac
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,7 @@ void testIdentity() {
Functional::SmallMatrix A;
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
Functional::SmallVector b;
b[0] = 1;
......@@ -73,8 +72,7 @@ void testSampleFunction() {
Functional::SmallMatrix A;
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
Functional::SmallVector b;
b[0] = 1;
......@@ -123,8 +121,7 @@ void testSampleFunctionNonsmooth() {
Functional::SmallMatrix A;
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
Functional::SmallVector b;
b[0] = 1;
......@@ -186,8 +183,7 @@ void testTrivialFunction() {
Functional::SmallMatrix A;
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
Functional::SmallVector b;
b[0] = 1;
......@@ -231,8 +227,7 @@ void testHorribleFunction() {
Functional::SmallMatrix A;
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
Functional::SmallVector b;
b[0] = 1;
......@@ -267,8 +262,7 @@ void testHorribleFunctionLogarithmic() {
Functional::SmallMatrix A;
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
Functional::SmallVector b;
b[0] = 1;
......@@ -303,11 +297,9 @@ void testSampleFunction3D() {
Functional::SmallMatrix A(0);
A[0][0] = 3;
A[0][1] = 1.5;
A[1][0] = 1.5;
A[0][1] = A[1][0] = 1.5;
A[1][1] = 4;
A[1][2] = 1.5;
A[2][1] = 1.5;
A[1][2] = A[2][1] = 1.5;
A[2][2] = 5;
Functional::SmallVector b;
b[0] = 1;
......@@ -346,8 +338,7 @@ void testSampleFunction2() {
Functional::SmallMatrix A;
A[0][0] = 1;
A[0][1] = 0;
A[1][0] = 0;
A[0][1] = A[1][0] = 0;
A[1][1] = 1;
Functional::SmallVector b;
b[0] = 1;
......@@ -381,8 +372,7 @@ void testSampleFunctionSteep1() {
Functional::SmallMatrix A;
A[0][0] = 1;
A[0][1] = 0;
A[1][0] = 0;
A[0][1] = A[1][0] = 0;
A[1][1] = 1;
Functional::SmallVector b;
b[0] = 1;
......@@ -419,8 +409,7 @@ void testSampleFunctionSteep2() {
Functional::SmallMatrix A;
A[0][0] = 1;
A[0][1] = 0;
A[1][0] = 0;
A[0][1] = A[1][0] = 0;
A[1][1] = 1;
Functional::SmallVector b;
b[0] = 1;
......@@ -457,8 +446,7 @@ void testSteepFunction() {
Functional::SmallMatrix A;
A[0][0] = 1;
A[0][1] = 0;
A[1][0] = 0;
A[0][1] = A[1][0] = 0;
A[1][1] = 1;
Functional::SmallVector b;
b[0] = 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