From 3e32b8529ec4ca5773f2d4f79d4b0f5ebed00fc6 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 19 Sep 2024 00:49:13 -0700 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Athan --- .../@stdlib/blas/base/drot/include/stdlib/blas/base/drot.h | 2 +- lib/node_modules/@stdlib/blas/base/drot/src/drot_cblas.c | 2 +- lib/node_modules/@stdlib/blas/base/drot/src/drot_f.c | 2 +- lib/node_modules/@stdlib/blas/base/drot/src/drot_ndarray.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/drot/include/stdlib/blas/base/drot.h b/lib/node_modules/@stdlib/blas/base/drot/include/stdlib/blas/base/drot.h index 9e4e74a5e8e..2d62297f1fd 100644 --- a/lib/node_modules/@stdlib/blas/base/drot/include/stdlib/blas/base/drot.h +++ b/lib/node_modules/@stdlib/blas/base/drot/include/stdlib/blas/base/drot.h @@ -39,7 +39,7 @@ void API_SUFFIX(c_drot)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, /** * Applies a plane rotation using alternative indexing semantics. */ -void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, CBLAS_INT offsetY, const double c, const double s ); +void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ); #ifdef __cplusplus } diff --git a/lib/node_modules/@stdlib/blas/base/drot/src/drot_cblas.c b/lib/node_modules/@stdlib/blas/base/drot/src/drot_cblas.c index d3e30c452d2..d58272128d5 100644 --- a/lib/node_modules/@stdlib/blas/base/drot/src/drot_cblas.c +++ b/lib/node_modules/@stdlib/blas/base/drot/src/drot_cblas.c @@ -49,7 +49,7 @@ void API_SUFFIX(c_drot)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, * @param c cosine of the angle of rotation * @param s sine of the angle of rotation */ -void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) { +void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) { X += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer Y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer API_SUFFIX(cblas_drot)( N, alpha, X, strideX, Y, strideY ); diff --git a/lib/node_modules/@stdlib/blas/base/drot/src/drot_f.c b/lib/node_modules/@stdlib/blas/base/drot/src/drot_f.c index 848258d5f35..99e15935655 100644 --- a/lib/node_modules/@stdlib/blas/base/drot/src/drot_f.c +++ b/lib/node_modules/@stdlib/blas/base/drot/src/drot_f.c @@ -49,7 +49,7 @@ void API_SUFFIX(c_drot)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, * @param c cosine of the angle of rotation * @param s sine of the angle of rotation */ -void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, CBLAS_INT offsetY, const double c, const double s ) { +void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) { X += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer Y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer drot( &N, X, &strideX, Y, &strideY, &c, &s ); diff --git a/lib/node_modules/@stdlib/blas/base/drot/src/drot_ndarray.c b/lib/node_modules/@stdlib/blas/base/drot/src/drot_ndarray.c index 168178ef9a6..716b441e37d 100644 --- a/lib/node_modules/@stdlib/blas/base/drot/src/drot_ndarray.c +++ b/lib/node_modules/@stdlib/blas/base/drot/src/drot_ndarray.c @@ -32,7 +32,7 @@ * @param c cosine of the angle of rotation * @param s sine of the angle of rotation */ -void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, CBLAS_INT offsetY, const double c, const double s ) { +void API_SUFFIX(c_drot_ndarray)( const CBLAS_INT N, double *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, double *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, const double c, const double s ) { double tmp; CBLAS_INT ix; CBLAS_INT iy;