Skip to content

Commit b00bebf

Browse files
committed
docs: fix examples
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7ecedc0 commit b00bebf

File tree

18 files changed

+364
-364
lines changed

18 files changed

+364
-364
lines changed

lib/node_modules/@stdlib/ndarray/base/every/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ if ( y == NULL ) {
297297
struct ndarray *arrays[] = { x, y };
298298

299299
// Test elements:
300-
int8_t status = stdlib_ndarray_b_x( arrays, NULL );
300+
int8_t status = stdlib_ndarray_every_b_x( arrays, NULL );
301301
if ( status != 0 ) {
302302
fprintf( stderr, "Error during computation.\n" );
303303
exit( EXIT_FAILURE );
@@ -385,7 +385,7 @@ if ( y == NULL ) {
385385
struct ndarray *arrays[] = { x, y };
386386

387387
// Test elements:
388-
int8_t status = stdlib_ndarray_c_x( arrays, NULL );
388+
int8_t status = stdlib_ndarray_every_c_x( arrays, NULL );
389389
if ( status != 0 ) {
390390
fprintf( stderr, "Error during computation.\n" );
391391
exit( EXIT_FAILURE );
@@ -472,7 +472,7 @@ if ( y == NULL ) {
472472
struct ndarray *arrays[] = { x, y };
473473

474474
// Test elements:
475-
int8_t status = stdlib_ndarray_d_x( arrays, NULL );
475+
int8_t status = stdlib_ndarray_every_d_x( arrays, NULL );
476476
if ( status != 0 ) {
477477
fprintf( stderr, "Error during computation.\n" );
478478
exit( EXIT_FAILURE );
@@ -559,7 +559,7 @@ if ( y == NULL ) {
559559
struct ndarray *arrays[] = { x, y };
560560

561561
// Test elements:
562-
int8_t status = stdlib_ndarray_f_x( arrays, NULL );
562+
int8_t status = stdlib_ndarray_every_f_x( arrays, NULL );
563563
if ( status != 0 ) {
564564
fprintf( stderr, "Error during computation.\n" );
565565
exit( EXIT_FAILURE );
@@ -646,7 +646,7 @@ if ( y == NULL ) {
646646
struct ndarray *arrays[] = { x, y };
647647

648648
// Test elements:
649-
int8_t status = stdlib_ndarray_i_x( arrays, NULL );
649+
int8_t status = stdlib_ndarray_every_i_x( arrays, NULL );
650650
if ( status != 0 ) {
651651
fprintf( stderr, "Error during computation.\n" );
652652
exit( EXIT_FAILURE );
@@ -733,7 +733,7 @@ if ( y == NULL ) {
733733
struct ndarray *arrays[] = { x, y };
734734

735735
// Test elements:
736-
int8_t status = stdlib_ndarray_k_x( arrays, NULL );
736+
int8_t status = stdlib_ndarray_every_k_x( arrays, NULL );
737737
if ( status != 0 ) {
738738
fprintf( stderr, "Error during computation.\n" );
739739
exit( EXIT_FAILURE );
@@ -820,7 +820,7 @@ if ( y == NULL ) {
820820
struct ndarray *arrays[] = { x, y };
821821

822822
// Test elements:
823-
int8_t status = stdlib_ndarray_s_x( arrays, NULL );
823+
int8_t status = stdlib_ndarray_every_s_x( arrays, NULL );
824824
if ( status != 0 ) {
825825
fprintf( stderr, "Error during computation.\n" );
826826
exit( EXIT_FAILURE );
@@ -907,7 +907,7 @@ if ( y == NULL ) {
907907
struct ndarray *arrays[] = { x, y };
908908

909909
// Test elements:
910-
int8_t status = stdlib_ndarray_t_x( arrays, NULL );
910+
int8_t status = stdlib_ndarray_every_t_x( arrays, NULL );
911911
if ( status != 0 ) {
912912
fprintf( stderr, "Error during computation.\n" );
913913
exit( EXIT_FAILURE );
@@ -994,7 +994,7 @@ if ( y == NULL ) {
994994
struct ndarray *arrays[] = { x, y };
995995

996996
// Test elements:
997-
int8_t status = stdlib_ndarray_u_x( arrays, NULL );
997+
int8_t status = stdlib_ndarray_every_u_x( arrays, NULL );
998998
if ( status != 0 ) {
999999
fprintf( stderr, "Error during computation.\n" );
10001000
exit( EXIT_FAILURE );
@@ -1081,7 +1081,7 @@ if ( y == NULL ) {
10811081
struct ndarray *arrays[] = { x, y };
10821082

10831083
// Test elements:
1084-
int8_t status = stdlib_ndarray_x_x( arrays, NULL );
1084+
int8_t status = stdlib_ndarray_every_x_x( arrays, NULL );
10851085
if ( status != 0 ) {
10861086
fprintf( stderr, "Error during computation.\n" );
10871087
exit( EXIT_FAILURE );
@@ -1169,7 +1169,7 @@ if ( y == NULL ) {
11691169
struct ndarray *arrays[] = { x, y };
11701170

11711171
// Test elements:
1172-
int8_t status = stdlib_ndarray_z_x( arrays, NULL );
1172+
int8_t status = stdlib_ndarray_every_z_x( arrays, NULL );
11731173
if ( status != 0 ) {
11741174
fprintf( stderr, "Error during computation.\n" );
11751175
exit( EXIT_FAILURE );

lib/node_modules/@stdlib/ndarray/base/every/scripts/templates/inline/docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if ( y == NULL ) {
6363
struct ndarray *arrays[] = { x, y };
6464

6565
// Test elements:
66-
int8_t status = stdlib_ndarray_{{SIGNATURE}}( arrays, NULL );
66+
int8_t status = stdlib_ndarray_every_{{SIGNATURE}}( arrays, NULL );
6767
if ( status != 0 ) {
6868
fprintf( stderr, "Error during computation.\n" );
6969
exit( EXIT_FAILURE );

lib/node_modules/@stdlib/ndarray/base/every/src/predicate/b_x_as_c_x.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
*
106106
* // Define a callback:
107107
* static bool fcn( const stdlib_complex64_t x ) {
108-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
108+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
109109
* }
110110
*
111111
* // Test elements:
@@ -211,7 +211,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_0d( struct ndarray *arrays[], void *fc
211211
*
212212
* // Define a callback:
213213
* static bool fcn( const stdlib_complex64_t x ) {
214-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
214+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
215215
* }
216216
*
217217
* // Test elements:
@@ -309,7 +309,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_1d( struct ndarray *arrays[], void *fc
309309
*
310310
* // Define a callback:
311311
* static bool fcn( const stdlib_complex64_t x ) {
312-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
312+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
313313
* }
314314
*
315315
* // Test elements:
@@ -407,7 +407,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_2d( struct ndarray *arrays[], void *fc
407407
*
408408
* // Define a callback:
409409
* static bool fcn( const stdlib_complex64_t x ) {
410-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
410+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
411411
* }
412412
*
413413
* // Test elements:
@@ -505,7 +505,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_2d_blocked( struct ndarray *arrays[],
505505
*
506506
* // Define a callback:
507507
* static bool fcn( const stdlib_complex64_t x ) {
508-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
508+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
509509
* }
510510
*
511511
* // Test elements:
@@ -603,7 +603,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_3d( struct ndarray *arrays[], void *fc
603603
*
604604
* // Define a callback:
605605
* static bool fcn( const stdlib_complex64_t x ) {
606-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
606+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
607607
* }
608608
*
609609
* // Test elements:
@@ -701,7 +701,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_3d_blocked( struct ndarray *arrays[],
701701
*
702702
* // Define a callback:
703703
* static bool fcn( const stdlib_complex64_t x ) {
704-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
704+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
705705
* }
706706
*
707707
* // Test elements:
@@ -799,7 +799,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_4d( struct ndarray *arrays[], void *fc
799799
*
800800
* // Define a callback:
801801
* static bool fcn( const stdlib_complex64_t x ) {
802-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
802+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
803803
* }
804804
*
805805
* // Test elements:
@@ -897,7 +897,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_4d_blocked( struct ndarray *arrays[],
897897
*
898898
* // Define a callback:
899899
* static bool fcn( const stdlib_complex64_t x ) {
900-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
900+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
901901
* }
902902
*
903903
* // Test elements:
@@ -995,7 +995,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_5d( struct ndarray *arrays[], void *fc
995995
*
996996
* // Define a callback:
997997
* static bool fcn( const stdlib_complex64_t x ) {
998-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
998+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
999999
* }
10001000
*
10011001
* // Test elements:
@@ -1093,7 +1093,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_5d_blocked( struct ndarray *arrays[],
10931093
*
10941094
* // Define a callback:
10951095
* static bool fcn( const stdlib_complex64_t x ) {
1096-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1096+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
10971097
* }
10981098
*
10991099
* // Test elements:
@@ -1191,7 +1191,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_6d( struct ndarray *arrays[], void *fc
11911191
*
11921192
* // Define a callback:
11931193
* static bool fcn( const stdlib_complex64_t x ) {
1194-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1194+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
11951195
* }
11961196
*
11971197
* // Test elements:
@@ -1289,7 +1289,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_6d_blocked( struct ndarray *arrays[],
12891289
*
12901290
* // Define a callback:
12911291
* static bool fcn( const stdlib_complex64_t x ) {
1292-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1292+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
12931293
* }
12941294
*
12951295
* // Test elements:
@@ -1387,7 +1387,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_7d( struct ndarray *arrays[], void *fc
13871387
*
13881388
* // Define a callback:
13891389
* static bool fcn( const stdlib_complex64_t x ) {
1390-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1390+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
13911391
* }
13921392
*
13931393
* // Test elements:
@@ -1485,7 +1485,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_7d_blocked( struct ndarray *arrays[],
14851485
*
14861486
* // Define a callback:
14871487
* static bool fcn( const stdlib_complex64_t x ) {
1488-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1488+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
14891489
* }
14901490
*
14911491
* // Test elements:
@@ -1583,7 +1583,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_8d( struct ndarray *arrays[], void *fc
15831583
*
15841584
* // Define a callback:
15851585
* static bool fcn( const stdlib_complex64_t x ) {
1586-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1586+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
15871587
* }
15881588
*
15891589
* // Test elements:
@@ -1681,7 +1681,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_8d_blocked( struct ndarray *arrays[],
16811681
*
16821682
* // Define a callback:
16831683
* static bool fcn( const stdlib_complex64_t x ) {
1684-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1684+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
16851685
* }
16861686
*
16871687
* // Test elements:
@@ -1779,7 +1779,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_9d( struct ndarray *arrays[], void *fc
17791779
*
17801780
* // Define a callback:
17811781
* static bool fcn( const stdlib_complex64_t x ) {
1782-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1782+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
17831783
* }
17841784
*
17851785
* // Test elements:
@@ -1877,7 +1877,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_9d_blocked( struct ndarray *arrays[],
18771877
*
18781878
* // Define a callback:
18791879
* static bool fcn( const stdlib_complex64_t x ) {
1880-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1880+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
18811881
* }
18821882
*
18831883
* // Test elements:
@@ -1975,7 +1975,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_10d( struct ndarray *arrays[], void *f
19751975
*
19761976
* // Define a callback:
19771977
* static bool fcn( const stdlib_complex64_t x ) {
1978-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1978+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
19791979
* }
19801980
*
19811981
* // Test elements:
@@ -2073,7 +2073,7 @@ int8_t stdlib_ndarray_every_by_b_x_as_c_x_10d_blocked( struct ndarray *arrays[],
20732073
*
20742074
* // Define a callback:
20752075
* static bool fcn( const stdlib_complex64_t x ) {
2076-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
2076+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
20772077
* }
20782078
*
20792079
* // Test elements:
@@ -2215,7 +2215,7 @@ static const struct ndarrayEveryDispatchObject obj = {
22152215
*
22162216
* // Define a callback:
22172217
* static bool fcn( const stdlib_complex64_t x ) {
2218-
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
2218+
* return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
22192219
* }
22202220
*
22212221
* // Test elements:

0 commit comments

Comments
 (0)