This commit is contained in:
2024-05-11 19:44:32 +02:00
parent 0d071b1cf9
commit 2975006972
10 changed files with 201 additions and 32 deletions

View File

@@ -6,9 +6,9 @@
#include <iostream>
#include <vector>
static constexpr int EXECUTION_COUNT = 100;
static constexpr int EXECUTION_COUNT = 10;
static constexpr int KERNEL_CHECKS = 100;
static constexpr int MATRIX_MAX_SIZE = 100;
static constexpr int MATRIX_MAX_SIZE = 10;
static const Solver solver;

View File

@@ -14,7 +14,7 @@ void TestRectangular() {
1, -1, -1, 2
}};
VectAffine aff {Matrix::ColumnVector({0, -1, 1}), Matrix::ColumnVector({3.0 / 2.0, 0, -1.0 / 2.0})};
VectAffine aff {Matrix::ColumnVector({0, -1, 1}), Matrix::ColumnVector({3, 0, -1})};
Solver solver;
@@ -41,8 +41,11 @@ void TestKernelImage() {
Matrix copy = mat;
test_assert(solver.Image(std::move(copy)) == image);
test_assert(solver.Kernel(std::move(mat)) == noyau);
Vect imageCalc = solver.Image(std::move(copy));
Vect kernelCalc = solver.Kernel(std::move(mat));
test_assert(imageCalc == image);
test_assert(kernelCalc == noyau);
}
}