Skip to content

Commit 5467341

Browse files
authored
fix: update C function names in blas/ext/base/cfill to prevent name collisions
PR-URL: #2943 Reviewed-by: Athan Reines <[email protected]>
1 parent 829713b commit 5467341

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

lib/node_modules/@stdlib/blas/ext/base/cfill/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,15 @@ console.log( x.get( 0 ).toString() );
285285
#include "stdlib/blas/ext/base/cfill.h"
286286
```
287287

288-
#### c_cfill( N, alpha, \*X, strideX )
288+
#### stdlib_strided_cfill( N, alpha, \*X, strideX )
289289

290290
Fills a single-precision floating-point strided array `X` with a specified scalar constant `alpha`.
291291

292292
```c
293293
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
294294
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );
295295

296-
c_cfill( 2, alpha, (stdlib_complex64_t *)x, 1 );
296+
stdlib_strided_cfill( 2, alpha, (stdlib_complex64_t *)x, 1 );
297297
```
298298
299299
The function accepts the following arguments:
@@ -304,18 +304,18 @@ The function accepts the following arguments:
304304
- **strideX**: `[in] CBLAS_INT` index increment for `X`.
305305
306306
```c
307-
void c_cfill( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX );
307+
void stdlib_strided_cfill( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX );
308308
```
309309

310-
#### c_cfill_ndarray( N, alpha, \*X, strideX, offsetX )
310+
#### stdlib_strided_cfill_ndarray( N, alpha, \*X, strideX, offsetX )
311311

312312
Fills a single-precision complex floating-point strided array `X` with a specified scalar constant `alpha` using alternative indexing semantics.
313313

314314
```c
315315
float x[] = { 1.0f, 2.0f, 3.0f, 4.0f };
316316
const stdlib_complex64_t alpha = stdlib_complex64( 2.0f, 2.0f );
317317

318-
c_cfill_ndarray( 4, alpha, (stdlib_complex64_t *x), 1, 0 );
318+
stdlib_strided_cfill_ndarray( 4, alpha, (stdlib_complex64_t *x), 1, 0 );
319319
```
320320
321321
The function accepts the following arguments:
@@ -327,7 +327,7 @@ The function accepts the following arguments:
327327
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
328328
329329
```c
330-
void c_cfill_ndarray( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex_64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
330+
void stdlib_strided_cfill_ndarray( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex_64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
331331
```
332332

333333
</section>
@@ -367,7 +367,7 @@ int main( void ) {
367367
const int strideX = 1;
368368

369369
// Fill the array:
370-
c_cfill( N, alpha, (stdlib_complex_64_t *)x, strideX );
370+
stdlib_strided_cfill( N, alpha, (stdlib_complex_64_t *)x, strideX );
371371

372372
// Print the result:
373373
for ( int i = 0; i < N; i++ ) {

lib/node_modules/@stdlib/blas/ext/base/cfill/benchmark/c/benchmark.length.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static double benchmark1( int iterations, int len ) {
109109
}
110110
t = tic();
111111
for ( i = 0; i < iterations; i++ ) {
112-
c_cfill( len, alpha, (stdlib_complex64_t *)x, 1 );
112+
stdlib_strided_cfill( len, alpha, (stdlib_complex64_t *)x, 1 );
113113
if ( x[ 0 ] != x[ 0 ] ) {
114114
printf( "should not return NaN\n" );
115115
break;
@@ -143,7 +143,7 @@ static double benchmark2( int iterations, int len ) {
143143
}
144144
t = tic();
145145
for ( i = 0; i < iterations; i++ ) {
146-
c_cfill_ndarray( len, alpha, (stdlib_complex64_t *)x, 1, 0 );
146+
stdlib_strided_cfill_ndarray( len, alpha, (stdlib_complex64_t *)x, 1, 0 );
147147
if ( x[ 0 ] != x[ 0 ] ) {
148148
printf( "should not return NaN\n" );
149149
break;

lib/node_modules/@stdlib/blas/ext/base/cfill/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main() {
3434
const int strideX = 1;
3535

3636
// Fill the array:
37-
c_cfill( N, alpha, (stdlib_complex64_t *)x, strideX );
37+
stdlib_strided_cfill( N, alpha, (stdlib_complex64_t *)x, strideX );
3838

3939
// Print the result:
4040
for ( int i = 0; i < 8; i++ ) {

lib/node_modules/@stdlib/blas/ext/base/cfill/include/stdlib/blas/ext/base/cfill.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ extern "C" {
3232
/**
3333
* Fills a single-precision complex floating-point strided array with a specified scalar constant.
3434
*/
35-
void API_SUFFIX(c_cfill)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX );
35+
void API_SUFFIX(stdlib_strided_cfill)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX );
3636

3737
/**
3838
* Fills a single-precision complex floating-point strided array with a specified scalar constant using alternative indexing semantics.
3939
*/
40-
void API_SUFFIX(c_cfill_ndarray)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
40+
void API_SUFFIX(stdlib_strided_cfill_ndarray)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
4141

4242
#ifdef __cplusplus
4343
}

lib/node_modules/@stdlib/blas/ext/base/cfill/src/addon.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
3939
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
4040
STDLIB_NAPI_ARGV_COMPLEX64( env, alpha, argv, 1 );
4141
STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 2 );
42-
API_SUFFIX(c_cfill)( N, alpha, (stdlib_complex64_t *)X, strideX );
42+
API_SUFFIX(stdlib_strided_cfill)( N, alpha, (stdlib_complex64_t *)X, strideX );
4343
return NULL;
4444
}
4545

@@ -57,7 +57,7 @@ static napi_value addon_method( napi_env env, napi_callback_info info ) {
5757
STDLIB_NAPI_ARGV_INT64( env, strideX, argv, 3 );
5858
STDLIB_NAPI_ARGV_INT64( env, offsetX, argv, 4 );
5959
STDLIB_NAPI_ARGV_STRIDED_COMPLEX64ARRAY( env, X, N, strideX, argv, 2 );
60-
API_SUFFIX(c_cfill_ndarray)( N, alpha, (stdlib_complex64_t *)X, strideX, offsetX );
60+
API_SUFFIX(stdlib_strided_cfill_ndarray)( N, alpha, (stdlib_complex64_t *)X, strideX, offsetX );
6161
return NULL;
6262
}
6363

lib/node_modules/@stdlib/blas/ext/base/cfill/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
* @param strideX index increment
3131
*/
3232

33-
void API_SUFFIX(c_cfill)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX ) {
33+
void API_SUFFIX(stdlib_strided_cfill)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX ) {
3434
CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
35-
API_SUFFIX(c_cfill_ndarray)( N, alpha, X, strideX, ox );
35+
API_SUFFIX(stdlib_strided_cfill_ndarray)( N, alpha, X, strideX, ox );
3636
}
3737

3838
/**
@@ -45,7 +45,7 @@ void API_SUFFIX(c_cfill)( const CBLAS_INT N, const stdlib_complex64_t alpha, std
4545
* @param offsetX starting index
4646
*/
4747

48-
void API_SUFFIX(c_cfill_ndarray)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
48+
void API_SUFFIX(stdlib_strided_cfill_ndarray)( const CBLAS_INT N, const stdlib_complex64_t alpha, stdlib_complex64_t *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
4949
CBLAS_INT ix;
5050
CBLAS_INT m;
5151
CBLAS_INT i;

0 commit comments

Comments
 (0)