From b061d93fd5a3f97b40b0d01c2d77af94d1f23d99 Mon Sep 17 00:00:00 2001 From: blegouix Date: Mon, 17 Jun 2024 13:58:29 +0200 Subject: [PATCH] fix --- tests/splines/matrix.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/tests/splines/matrix.cpp b/tests/splines/matrix.cpp index abce83947..598f6c5b3 100644 --- a/tests/splines/matrix.cpp +++ b/tests/splines/matrix.cpp @@ -274,33 +274,6 @@ TEST(Matrix, 3x3Blocks) solve_and_validate(*matrix); } - -TEST(Matrix, PeriodicBand) -{ - std::size_t const N = 10; - std::size_t const k = 3; - std::unique_ptr> top_left_block - = std::make_unique>(N - k, k, k); - std::unique_ptr> matrix - = std::make_unique>(N, k, k, std::move(top_left_block)); - - // Build a periodic band full-rank matrix - for (std::size_t i(0); i < N; ++i) { - for (std::size_t j(0); j < N; ++j) { - std::size_t diag = std::abs((std::ptrdiff_t)j - (std::ptrdiff_t)i) % N; - if (diag == 0 || diag == N) { - matrix->set_element(i, j, 0.5); - } else if (diag <= k || diag >= N - k) { - matrix->set_element(i, j, -1.0 / k); - } - } - } - - solve_and_validate(*matrix); -} - class MatrixSizesFixture : public testing::TestWithParam> { };