From 387b82059d7521e7d5633e770e580b8b0e85b7bb Mon Sep 17 00:00:00 2001 From: Mohammadbinaftab Date: Tue, 4 Feb 2025 15:24:43 +0530 Subject: [PATCH 1/3] fixed #5052 --- lib/node_modules/@stdlib/lapack/base/claset/lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/lapack/base/claset/lib/index.js b/lib/node_modules/@stdlib/lapack/base/claset/lib/index.js index f936983e4ac9..75ef559cc4f7 100644 --- a/lib/node_modules/@stdlib/lapack/base/claset/lib/index.js +++ b/lib/node_modules/@stdlib/lapack/base/claset/lib/index.js @@ -24,7 +24,7 @@ * @module @stdlib/lapack/base/claset * * @example -* var Complex64Array = require( '@stdlib/array/float32' ); +* var Complex64Array = require( '@stdlib/array/complex64' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * var realf = require( '@stdlib/complex/float32/real' ); * var imagf = require( '@stdlib/complex/float32/imag' ); @@ -42,11 +42,11 @@ * var re = realf( z ); * // returns 3.0 * -* var im = imagf( z ) +* var im = imagf( z ); * // returns 4.0 * * @example -* var Complex64Array = require( '@stdlib/array/float32' ); +* var Complex64Array = require( '@stdlib/array/complex64' ); * var Complex64 = require( '@stdlib/complex/float32/ctor' ); * var realf = require( '@stdlib/complex/float32/real' ); * var imagf = require( '@stdlib/complex/float32/imag' ); From 00e35e3c32efec84351d701be3c792d302109756 Mon Sep 17 00:00:00 2001 From: MohammadBinAftab Date: Thu, 6 Feb 2025 15:59:05 +0530 Subject: [PATCH 2/3] Fixed #5073 --- lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md | 5 ++--- lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md b/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md index d634316f4d5d..6aeb135692d9 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md @@ -181,7 +181,7 @@ stdlib_strided_dsortins( 2, -1.0, x, 1 ); The function accepts the following arguments: - **N**: `[in] CBLAS_INT` number of indexed elements. -- **order**: `[in] double` sort order. If `order < 0.0`, the input strided array `x` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `x` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged. +- - **order**: `[in] double` sort order. If `order < 0.0`, the input strided array is sorted in **decreasing** order. If `order > 0.0`, the input strided array is sorted in **increasing** order. If `order == 0.0`, the input strided array is left unchanged. - **X**: `[inout] double*` input array. - **strideX**: `[in] CBLAS_INT` stride length for `X`. @@ -206,7 +206,7 @@ stdlib_strided_dsortins_ndarray( 4, 1.0, x, 1, 0 ); The function accepts the following arguments: - **N**: `[in] CBLAS_INT` number of indexed elements. -- **order**: `[in] double` sort order. If `order < 0.0`, the input strided array `x` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `x` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged. +- **order**: `[in] double` sort order. If `order < 0.0`, the input strided array is sorted in **decreasing** order. If `order > 0.0`, the input strided array is sorted in **increasing** order. If `order == 0.0`, the input strided array is left unchanged. - **X**: `[inout] double*` input array. - **strideX**: `[in] CBLAS_INT` stride length for `X`. - **offsetX**: `[in] CBLAS_INT` starting index for `X`. @@ -255,7 +255,6 @@ int main( void ) { printf( "x[ %i ] = %lf\n", i, x[ i ] ); } } - ``` diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c b/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c index 8d39e192b0a7..00d788eaea04 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c @@ -69,7 +69,7 @@ void API_SUFFIX(stdlib_strided_dsortins_ndarray)( const CBLAS_INT N, const doubl ox = offsetX; } fx = ox; - lx = fx + (N-1) * sx; + lx = fx + ((N-1) * sx); ix = fx + sx; if ( sx < 0 ) { // Traverse the strided array from right-to-left... From 1b2f0276174b067191c201ccf801c281e25e7a22 Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Thu, 6 Feb 2025 09:10:22 -0500 Subject: [PATCH 3/3] chore: apply suggestions from code review Signed-off-by: Philipp Burckhardt --- lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md | 2 +- lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md b/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md index 6aeb135692d9..0deac6c6af76 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/README.md @@ -181,7 +181,7 @@ stdlib_strided_dsortins( 2, -1.0, x, 1 ); The function accepts the following arguments: - **N**: `[in] CBLAS_INT` number of indexed elements. -- - **order**: `[in] double` sort order. If `order < 0.0`, the input strided array is sorted in **decreasing** order. If `order > 0.0`, the input strided array is sorted in **increasing** order. If `order == 0.0`, the input strided array is left unchanged. +- **order**: `[in] double` sort order. If `order < 0.0`, the input strided array is sorted in **decreasing** order. If `order > 0.0`, the input strided array is sorted in **increasing** order. If `order == 0.0`, the input strided array is left unchanged. - **X**: `[inout] double*` input array. - **strideX**: `[in] CBLAS_INT` stride length for `X`. diff --git a/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c b/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c index 00d788eaea04..0cb8be610ba5 100644 --- a/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c +++ b/lib/node_modules/@stdlib/blas/ext/base/dsortins/src/main.c @@ -69,7 +69,7 @@ void API_SUFFIX(stdlib_strided_dsortins_ndarray)( const CBLAS_INT N, const doubl ox = offsetX; } fx = ox; - lx = fx + ((N-1) * sx); + lx = fx + ( (N-1) * sx ); ix = fx + sx; if ( sx < 0 ) { // Traverse the strided array from right-to-left...