From 6c20868da08ea41e16eac9c557372dd51c87e491 Mon Sep 17 00:00:00 2001 From: Guglielmo Gagliardi Date: Thu, 14 Dec 2023 12:09:11 +0100 Subject: [PATCH] refactor code --- test/unit/test_blas_tile/test_scal.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/test/unit/test_blas_tile/test_scal.h b/test/unit/test_blas_tile/test_scal.h index 9826660b3a..852e4e5464 100644 --- a/test/unit/test_blas_tile/test_scal.h +++ b/test/unit/test_blas_tile/test_scal.h @@ -14,8 +14,8 @@ #include #include -#include #include +#include #include @@ -34,16 +34,14 @@ using namespace dlaf::matrix::test; using namespace testing; template -void testScal(const SizeType m, - const SizeType n, const SizeType extra_lda) { +void testScal(const SizeType m, const SizeType n, const SizeType extra_lda) { const TileElementSize size_a(m, n); const SizeType lda = std::max(1, size_a.rows()) + extra_lda; const T beta = TypeUtilities::element(1.1, .4); - auto [el_a, res_a] = - getMatrixScal(beta); + auto [el_a, res_a] = getMatrixScal(beta); auto a = createTile(el_a, size_a, lda); @@ -56,8 +54,7 @@ void testScal(const SizeType m, SCOPED_TRACE(s.str()); // Check result against analytical result. - CHECK_TILE_NEAR(res_a, a, 2 * TypeUtilities::error, - 2 * TypeUtilities::error); + CHECK_TILE_NEAR(res_a, a, 2 * TypeUtilities::error, 2 * TypeUtilities::error); } }