Skip to content

Commit 5426105

Browse files
committed
docs: use C equality operator
--- 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: na - 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 5f73301 commit 5426105

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/every

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ struct ndarray *arrays[] = { x, y };
13541354

13551355
// Define a callback:
13561356
static bool fcn( const stdlib_complex64_t x ) {
1357-
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
1357+
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
13581358
}
13591359

13601360
// Test elements:
@@ -1999,7 +1999,7 @@ struct ndarray *arrays[] = { x, y };
19991999

20002000
// Define a callback:
20012001
static bool fcn( const stdlib_complex128_t x ) {
2002-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
2002+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
20032003
}
20042004

20052005
// Test elements:
@@ -2092,7 +2092,7 @@ struct ndarray *arrays[] = { x, y };
20922092

20932093
// Define a callback:
20942094
static bool fcn( const stdlib_complex64_t x ) {
2095-
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
2095+
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
20962096
}
20972097

20982098
// Test elements:
@@ -2185,7 +2185,7 @@ struct ndarray *arrays[] = { x, y };
21852185

21862186
// Define a callback:
21872187
static bool fcn( const stdlib_complex128_t x ) {
2188-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
2188+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
21892189
}
21902190

21912191
// Test elements:
@@ -2370,7 +2370,7 @@ struct ndarray *arrays[] = { x, y };
23702370

23712371
// Define a callback:
23722372
static bool fcn( const stdlib_complex128_t x ) {
2373-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
2373+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
23742374
}
23752375

23762376
// Test elements:
@@ -2555,7 +2555,7 @@ struct ndarray *arrays[] = { x, y };
25552555

25562556
// Define a callback:
25572557
static bool fcn( const stdlib_complex64_t x ) {
2558-
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
2558+
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
25592559
}
25602560

25612561
// Test elements:
@@ -2740,7 +2740,7 @@ struct ndarray *arrays[] = { x, y };
27402740

27412741
// Define a callback:
27422742
static bool fcn( const stdlib_complex128_t x ) {
2743-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
2743+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
27442744
}
27452745

27462746
// Test elements:
@@ -3017,7 +3017,7 @@ struct ndarray *arrays[] = { x, y };
30173017

30183018
// Define a callback:
30193019
static bool fcn( const stdlib_complex128_t x ) {
3020-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
3020+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
30213021
}
30223022

30233023
// Test elements:
@@ -3202,7 +3202,7 @@ struct ndarray *arrays[] = { x, y };
32023202

32033203
// Define a callback:
32043204
static bool fcn( const stdlib_complex64_t x ) {
3205-
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
3205+
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
32063206
}
32073207

32083208
// Test elements:
@@ -3571,7 +3571,7 @@ struct ndarray *arrays[] = { x, y };
35713571

35723572
// Define a callback:
35733573
static bool fcn( const stdlib_complex128_t x ) {
3574-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
3574+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
35753575
}
35763576

35773577
// Test elements:
@@ -3756,7 +3756,7 @@ struct ndarray *arrays[] = { x, y };
37563756

37573757
// Define a callback:
37583758
static bool fcn( const stdlib_complex64_t x ) {
3759-
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
3759+
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
37603760
}
37613761

37623762
// Test elements:
@@ -4217,7 +4217,7 @@ struct ndarray *arrays[] = { x, y };
42174217

42184218
// Define a callback:
42194219
static bool fcn( const stdlib_complex128_t x ) {
4220-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
4220+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
42214221
}
42224222

42234223
// Test elements:
@@ -4402,7 +4402,7 @@ struct ndarray *arrays[] = { x, y };
44024402

44034403
// Define a callback:
44044404
static bool fcn( const stdlib_complex64_t x ) {
4405-
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) === 0.0f );
4405+
return ( stdlib_complex64_real( x ) == 0.0f && stdlib_complex64_imag( x ) == 0.0f );
44064406
}
44074407

44084408
// Test elements:
@@ -4863,7 +4863,7 @@ struct ndarray *arrays[] = { x, y };
48634863

48644864
// Define a callback:
48654865
static bool fcn( const stdlib_complex128_t x ) {
4866-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
4866+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
48674867
}
48684868

48694869
// Test elements:
@@ -5140,7 +5140,7 @@ struct ndarray *arrays[] = { x, y };
51405140

51415141
// Define a callback:
51425142
static bool fcn( const stdlib_complex128_t x ) {
5143-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
5143+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
51445144
}
51455145

51465146
// Test elements:
@@ -5325,7 +5325,7 @@ struct ndarray *arrays[] = { x, y };
53255325

53265326
// Define a callback:
53275327
static bool fcn( const stdlib_complex128_t x ) {
5328-
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) === 0.0 );
5328+
return ( stdlib_complex128_real( x ) == 0.0 && stdlib_complex128_imag( x ) == 0.0 );
53295329
}
53305330

53315331
// Test elements:

0 commit comments

Comments
 (0)