From 09b536df8afb15a50cdc76d6426aae0289ac1d1c Mon Sep 17 00:00:00 2001 From: amcamd Date: Mon, 22 Jul 2024 11:09:21 -0500 Subject: [PATCH] clang-format corrections --- clients/include/hipblas_init.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/clients/include/hipblas_init.hpp b/clients/include/hipblas_init.hpp index afd40849..c3ba7453 100644 --- a/clients/include/hipblas_init.hpp +++ b/clients/include/hipblas_init.hpp @@ -345,7 +345,7 @@ void hipblas_init_matrix_trig(hipblas_matrix_type matrix_type, #endif for(size_t i = 0; i < M; ++i) for(size_t j = 0; j < N; ++j) - A[i + j * lda] = T(seedReset ? cos(i + j * M ) : sin(i + j * M )); + A[i + j * lda] = T(seedReset ? cos(i + j * M) : sin(i + j * M)); } else if(matrix_type == hipblas_hermitian_matrix) { @@ -355,7 +355,7 @@ void hipblas_init_matrix_trig(hipblas_matrix_type matrix_type, for(size_t i = 0; i < N; ++i) for(size_t j = 0; j <= i; ++j) { - auto value = T(seedReset ? cos(i + j * N ) : sin(i + j * N )); + auto value = T(seedReset ? cos(i + j * N) : sin(i + j * N)); if(i == j) A[j + i * lda] = hipblas_real(value); @@ -384,7 +384,7 @@ void hipblas_init_matrix_trig(hipblas_matrix_type matrix_type, for(size_t i = 0; i < N; ++i) for(size_t j = 0; j <= i; ++j) { - auto value = T(seedReset ? cos(i + j * N ) : sin(i + j * N )); + auto value = T(seedReset ? cos(i + j * N) : sin(i + j * N)); if(i == j) A[j + i * lda] = value; else if(uplo == 'U') @@ -414,9 +414,8 @@ void hipblas_init_matrix_trig(hipblas_matrix_type matrix_type, { auto value = uplo == 'U' - ? (j >= i ? T(seedReset ? cos(i + j * M ) : sin(i + j * M )) : T(0)) - : (j <= i ? T(seedReset ? cos(i + j * M ) : sin(i + j * M )) - : T(0)); + ? (j >= i ? T(seedReset ? cos(i + j * M) : sin(i + j * M)) : T(0)) + : (j <= i ? T(seedReset ? cos(i + j * M) : sin(i + j * M)) : T(0)); A[i + j * lda] = value; } } @@ -436,7 +435,7 @@ void hipblas_init_vector_trig(T* x, int64_t N, int64_t incx, bool seedReset = fa #pragma omp parallel for #endif for(int64_t j = 0; j < N; ++j) - x[j * incx] = T(seedReset ? cos(j ) : sin(j )); + x[j * incx] = T(seedReset ? cos(j) : sin(j)); } /* ============================================================================================ */