From f200e5133a9f3ba2f4bf67e4b1591bdbd8a66e74 Mon Sep 17 00:00:00 2001 From: Pratik Nayak Date: Fri, 6 Oct 2023 09:11:18 +0200 Subject: [PATCH] Use CommonTestFixture value_type --- test/matrix/batch_dense_kernels.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/matrix/batch_dense_kernels.cpp b/test/matrix/batch_dense_kernels.cpp index b32f1063377..d6bf85a42c4 100644 --- a/test/matrix/batch_dense_kernels.cpp +++ b/test/matrix/batch_dense_kernels.cpp @@ -55,9 +55,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. class Dense : public CommonTestFixture { protected: - using vtype = double; - using Mtx = gko::batch::matrix::Dense; - using MVec = gko::batch::MultiVector; + using Mtx = gko::batch::matrix::Dense; + using MVec = gko::batch::MultiVector; Dense() : rand_engine(15) {} @@ -87,7 +86,7 @@ class Dense : public CommonTestFixture { expected = MVec::create( ref, gko::batch_dim<2>(batch_size, gko::dim<2>{num_rows, num_vecs})); - expected->fill(gko::one()); + expected->fill(gko::one()); dresult = gko::clone(exec, expected); } @@ -114,7 +113,7 @@ TEST_F(Dense, SingleVectorApplyIsEquivalentToRef) x->apply(y.get(), expected.get()); dx->apply(dy.get(), dresult.get()); - GKO_ASSERT_BATCH_MTX_NEAR(dresult, expected, 1e-14); + GKO_ASSERT_BATCH_MTX_NEAR(dresult, expected, r::value); } @@ -125,5 +124,5 @@ TEST_F(Dense, SingleVectorAdvancedApplyIsEquivalentToRef) x->apply(alpha.get(), y.get(), beta.get(), expected.get()); dx->apply(dalpha.get(), dy.get(), dbeta.get(), dresult.get()); - GKO_ASSERT_BATCH_MTX_NEAR(dresult, expected, 1e-14); + GKO_ASSERT_BATCH_MTX_NEAR(dresult, expected, r::value); }