Skip to content

Commit 7ec74ef

Browse files
committed
docs: avoid using JS strict equality operators in C comments
--- 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: na - 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 5dd3fd0 commit 7ec74ef

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

lib/node_modules/@stdlib/blas/base/dgemv/src/addon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
6464
if ( layout == CblasColMajor ) {
6565
sa1 = 1;
6666
sa2 = LDA;
67-
} else { // layout === CblasRowMajor
67+
} else { // layout == CblasRowMajor
6868
sa1 = LDA;
6969
sa2 = 1;
7070
}

lib/node_modules/@stdlib/blas/base/dgemv/src/dgemv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans
102102
if ( layout == CblasColMajor ) {
103103
sa1 = 1;
104104
sa2 = LDA;
105-
} else { // layout === CblasRowMajor
105+
} else { // layout == CblasRowMajor
106106
sa1 = LDA;
107107
sa2 = 1;
108108
}

lib/node_modules/@stdlib/blas/base/dgemv/src/dgemv_ndarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void API_SUFFIX(c_dgemv_ndarray)( const CBLAS_TRANSPOSE trans, const CBLAS_INT M
139139
}
140140
// Form: Y = α*A^T*X + Y
141141

142-
// ( !isrm && trans !== CblasNoTrans ) || ( isrm && trans === CblasNoTrans )
142+
// ( !isrm && trans != CblasNoTrans ) || ( isrm && trans == CblasNoTrans )
143143
if ( isrm ) {
144144
// For row-major matrices, the last dimension has the fastest changing index...
145145
da0 = strideA2; // offset increment for innermost loop

lib/node_modules/@stdlib/blas/base/dger/src/dger_ndarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void API_SUFFIX(c_dger_ndarray)( const CBLAS_INT M, const CBLAS_INT N, const dou
162162

163163
ox = offsetY;
164164
iy = offsetX;
165-
} else { // order === 'column-major'
165+
} else { // order == 'column-major'
166166
// For column-major matrices, the first dimension has the fastest changing index...
167167
S0 = M;
168168
S1 = N;

lib/node_modules/@stdlib/blas/base/sgemv/src/addon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
6464
if ( layout == CblasColMajor ) {
6565
sa1 = 1;
6666
sa2 = LDA;
67-
} else { // layout === CblasRowMajor
67+
} else { // layout == CblasRowMajor
6868
sa1 = LDA;
6969
sa2 = 1;
7070
}

lib/node_modules/@stdlib/blas/base/sgemv/src/sgemv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void API_SUFFIX(c_sgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans
102102
if ( layout == CblasColMajor ) {
103103
sa1 = 1;
104104
sa2 = LDA;
105-
} else { // layout === CblasRowMajor
105+
} else { // layout == CblasRowMajor
106106
sa1 = LDA;
107107
sa2 = 1;
108108
}

lib/node_modules/@stdlib/blas/base/sgemv/src/sgemv_ndarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void API_SUFFIX(c_sgemv_ndarray)( const CBLAS_TRANSPOSE trans, const CBLAS_INT M
139139
}
140140
// Form: Y = α*A^T*X + Y
141141

142-
// ( !isrm && trans !== CblasNoTrans ) || ( isrm && trans === CblasNoTrans )
142+
// ( !isrm && trans != CblasNoTrans ) || ( isrm && trans == CblasNoTrans )
143143
if ( isrm ) {
144144
// For row-major matrices, the last dimension has the fastest changing index...
145145
da0 = strideA2; // offset increment for innermost loop

lib/node_modules/@stdlib/blas/base/sger/src/sger_ndarray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void API_SUFFIX(c_sger_ndarray)( const CBLAS_INT M, const CBLAS_INT N, const flo
162162

163163
ox = offsetY;
164164
iy = offsetX;
165-
} else { // order === 'column-major'
165+
} else { // order == 'column-major'
166166
// For column-major matrices, the first dimension has the fastest changing index...
167167
S0 = M;
168168
S1 = N;

lib/node_modules/@stdlib/blas/base/ssyr/src/ssyr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void API_SUFFIX(c_ssyr)( const CBLAS_LAYOUT order, const CBLAS_UPLO uplo, const
4444
if ( order == CblasColMajor ) {
4545
sa1 = 1;
4646
sa2 = LDA;
47-
} else { // order === 'row-major'
47+
} else { // order == 'row-major'
4848
sa1 = LDA;
4949
sa2 = 1;
5050
}
@@ -113,7 +113,7 @@ void API_SUFFIX(c_ssyr_ndarray)( const CBLAS_UPLO uplo, const CBLAS_INT N, const
113113
}
114114
return;
115115
}
116-
// ( isrm && uplo == 'CblasUpper' ) || ( !isrm && uplo === 'CblasLower' )
116+
// ( isrm && uplo == 'CblasUpper' ) || ( !isrm && uplo == 'CblasLower' )
117117
ix1 = ox;
118118
for ( i1 = 0; i1 < N; i1++ ) {
119119
if ( X[ ix1 ] != 0.0f ) {

lib/node_modules/@stdlib/math/base/special/pow/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ static double y_is_infinite( const double x, const double y ) {
214214
if ( x == 1.0 ) {
215215
return 1.0;
216216
}
217-
// (|x| > 1 && y == NINF) || (|x| < 1 && y === PINF)
217+
// (|x| > 1 && y == NINF) || (|x| < 1 && y == PINF)
218218
if ( ( stdlib_base_abs( x ) < 1.0 ) == ( y == STDLIB_CONSTANT_FLOAT64_PINF ) ) {
219219
return 0.0;
220220
}

0 commit comments

Comments
 (0)