From a13738c634ad66c18c97445cc2b9a99f9927ad7a Mon Sep 17 00:00:00 2001 From: Alycia Lisito <alycia.lisito@inria.fr> Date: Mon, 25 Apr 2022 10:11:43 +0200 Subject: [PATCH] check: replace max by chameleon_max in all check --- testing/testing_zcheck_facto.c | 2 +- testing/testing_zcheck_polar_decomp.c | 4 ---- testing/testing_zcheck_qr_lq.c | 4 ---- testing/testing_zcheck_svd.c | 4 ---- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/testing/testing_zcheck_facto.c b/testing/testing_zcheck_facto.c index c09a69934..a9ad49b3a 100644 --- a/testing/testing_zcheck_facto.c +++ b/testing/testing_zcheck_facto.c @@ -427,7 +427,7 @@ int check_zsolve( run_arg_list_t *args, cham_mtxtype_t matrix_type, cham_trans_t } Rnorm = CHAMELEON_zlange_Tile( ChamOneNorm, descB ); - result = Rnorm / ( Anorm * Xnorm * chameleon_max( M, N ) * eps ); + result = Rnorm / ( Anorm * Xnorm * max( M, N ) * eps ); run_arg_add_double( args, "||A||", Anorm ); run_arg_add_double( args, "||X||", Xnorm ); diff --git a/testing/testing_zcheck_polar_decomp.c b/testing/testing_zcheck_polar_decomp.c index 761f59297..b8469b232 100644 --- a/testing/testing_zcheck_polar_decomp.c +++ b/testing/testing_zcheck_polar_decomp.c @@ -36,10 +36,6 @@ #include "testing_zcheck.h" #include <chameleon/flops.h> -#ifndef max -#define max( _a_, _b_ ) ( (_a_) > (_b_) ? (_a_) : (_b_) ) -#endif - /** ******************************************************************************** * diff --git a/testing/testing_zcheck_qr_lq.c b/testing/testing_zcheck_qr_lq.c index 247adba1a..9676a3c49 100644 --- a/testing/testing_zcheck_qr_lq.c +++ b/testing/testing_zcheck_qr_lq.c @@ -36,10 +36,6 @@ #include "testing_zcheck.h" #include <chameleon/flops.h> -#ifndef max -#define max( _a_, _b_ ) ( (_a_) > (_b_) ? (_a_) : (_b_) ) -#endif - /** ******************************************************************************** * diff --git a/testing/testing_zcheck_svd.c b/testing/testing_zcheck_svd.c index 6df281921..84c53b9bc 100644 --- a/testing/testing_zcheck_svd.c +++ b/testing/testing_zcheck_svd.c @@ -32,10 +32,6 @@ #include "testing_zcheck.h" #include <chameleon/flops.h> -#ifndef max -#define max( _a_, _b_ ) ( (_a_) > (_b_) ? (_a_) : (_b_) ) -#endif - /** ******************************************************************************** * -- GitLab