solver move matricies

This commit is contained in:
2024-05-04 14:56:50 +02:00
parent 36ef301cb9
commit e71bc588e5
6 changed files with 37 additions and 32 deletions

View File

@@ -18,7 +18,7 @@ void TestRectangular() {
Solver solver;
std::cout << solver.RectangularSystem(mat2, Matrix::ColumnVector({1, 2})).GetLinearSystem() << std::endl;
std::cout << solver.RectangularSystem(std::move(mat2), Matrix::ColumnVector({1, 2})).GetLinearSystem() << std::endl;
std::cout << aff.GetLinearSystem() << std::endl;
}
@@ -39,8 +39,10 @@ void TestKernelImage() {
Solver solver;
test_assert(solver.Image(mat) == image);
test_assert(solver.Kernel(mat) == noyau);
Matrix copy = mat;
test_assert(solver.Image(std::move(copy)) == image);
test_assert(solver.Kernel(std::move(mat)) == noyau);
}
}