solver move matricies
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user