Skip to content

Commit 90b1d08

Browse files
committed
chore: minor clean-up
--- 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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 4c772c1 commit 90b1d08

7 files changed

Lines changed: 22 additions & 22 deletions

File tree

lib/node_modules/@stdlib/math/base/napi/quaternary/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ static stdlib_complex128_t add( const stdlib_complex128_t w, const stdlib_comple
409409
double re;
410410
double im;
411411

412-
stdlib_complex128_reim( w, &xre, &wim );
413-
stdlib_complex128_reim( x, &yre, &xim );
414-
stdlib_complex128_reim( y, &zre, &yim );
412+
stdlib_complex128_reim( w, &wre, &wim );
413+
stdlib_complex128_reim( x, &xre, &xim );
414+
stdlib_complex128_reim( y, &yre, &yim );
415415
stdlib_complex128_reim( z, &zre, &zim );
416416

417417
re = wre + xre + yre + zre;

lib/node_modules/@stdlib/math/base/napi/quaternary/src/cccc_c.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
112112
status = napi_typeof( env, xre, &xretype );
113113
assert( status == napi_ok );
114114
if ( xretype != napi_number ) {
115-
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have a real component which is a number." );
115+
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have a real component which is a number." );
116116
assert( status == napi_ok );
117117
return NULL;
118118
}
119119

120120
status = napi_has_named_property( env, argv[ 1 ], "im", &hprop );
121121
assert( status == napi_ok );
122122
if ( !hprop ) {
123-
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have an imaginary component." );
123+
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have an imaginary component." );
124124
assert( status == napi_ok );
125125
return NULL;
126126
}
@@ -133,15 +133,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
133133
status = napi_typeof( env, xim, &ximtype );
134134
assert( status == napi_ok );
135135
if ( ximtype != napi_number ) {
136-
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have an imaginary component which a number." );
136+
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have an imaginary component which is a number." );
137137
assert( status == napi_ok );
138138
return NULL;
139139
}
140140

141141
status = napi_has_named_property( env, argv[ 2 ], "re", &hprop );
142142
assert( status == napi_ok );
143143
if ( !hprop ) {
144-
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have a real component." );
144+
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have a real component." );
145145
assert( status == napi_ok );
146146
return NULL;
147147
}
@@ -154,15 +154,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
154154
status = napi_typeof( env, yre, &yretype );
155155
assert( status == napi_ok );
156156
if ( yretype != napi_number ) {
157-
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have a real component which is a number." );
157+
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have a real component which is a number." );
158158
assert( status == napi_ok );
159159
return NULL;
160160
}
161161

162162
status = napi_has_named_property( env, argv[ 2 ], "im", &hprop );
163163
assert( status == napi_ok );
164164
if ( !hprop ) {
165-
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have an imaginary component." );
165+
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have an imaginary component." );
166166
assert( status == napi_ok );
167167
return NULL;
168168
}
@@ -175,15 +175,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
175175
status = napi_typeof( env, yim, &yimtype );
176176
assert( status == napi_ok );
177177
if ( yimtype != napi_number ) {
178-
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have an imaginary component which a number." );
178+
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have an imaginary component which is a number." );
179179
assert( status == napi_ok );
180180
return NULL;
181181
}
182182

183183
status = napi_has_named_property( env, argv[ 3 ], "re", &hprop );
184184
assert( status == napi_ok );
185185
if ( !hprop ) {
186-
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have a real component." );
186+
status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must have a real component." );
187187
assert( status == napi_ok );
188188
return NULL;
189189
}
@@ -196,15 +196,15 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
196196
status = napi_typeof( env, zre, &zretype );
197197
assert( status == napi_ok );
198198
if ( zretype != napi_number ) {
199-
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have a real component which is a number." );
199+
status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must have a real component which is a number." );
200200
assert( status == napi_ok );
201201
return NULL;
202202
}
203203

204204
status = napi_has_named_property( env, argv[ 3 ], "im", &hprop );
205205
assert( status == napi_ok );
206206
if ( !hprop ) {
207-
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have an imaginary component." );
207+
status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must have an imaginary component." );
208208
assert( status == napi_ok );
209209
return NULL;
210210
}
@@ -217,7 +217,7 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
217217
status = napi_typeof( env, zim, &zimtype );
218218
assert( status == napi_ok );
219219
if ( zimtype != napi_number ) {
220-
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have an imaginary component which a number." );
220+
status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must have an imaginary component which is a number." );
221221
assert( status == napi_ok );
222222
return NULL;
223223
}

lib/node_modules/@stdlib/math/base/napi/quaternary/src/zzzz_z.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ napi_value stdlib_math_base_napi_zzzz_z( napi_env env, napi_callback_info info,
9191
status = napi_typeof( env, wim, &wimtype );
9292
assert( status == napi_ok );
9393
if ( wimtype != napi_number ) {
94-
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have an imaginary component which a number." );
94+
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have an imaginary component which is a number." );
9595
assert( status == napi_ok );
9696
return NULL;
9797
}
@@ -133,7 +133,7 @@ napi_value stdlib_math_base_napi_zzzz_z( napi_env env, napi_callback_info info,
133133
status = napi_typeof( env, xim, &ximtype );
134134
assert( status == napi_ok );
135135
if ( ximtype != napi_number ) {
136-
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have an imaginary component which a number." );
136+
status = napi_throw_type_error( env, NULL, "invalid argument. Second argument must have an imaginary component which is a number." );
137137
assert( status == napi_ok );
138138
return NULL;
139139
}
@@ -175,7 +175,7 @@ napi_value stdlib_math_base_napi_zzzz_z( napi_env env, napi_callback_info info,
175175
status = napi_typeof( env, yim, &yimtype );
176176
assert( status == napi_ok );
177177
if ( yimtype != napi_number ) {
178-
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have an imaginary component which a number." );
178+
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must have an imaginary component which is a number." );
179179
assert( status == napi_ok );
180180
return NULL;
181181
}
@@ -217,7 +217,7 @@ napi_value stdlib_math_base_napi_zzzz_z( napi_env env, napi_callback_info info,
217217
status = napi_typeof( env, zim, &zimtype );
218218
assert( status == napi_ok );
219219
if ( zimtype != napi_number ) {
220-
status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must have an imaginary component which a number." );
220+
status = napi_throw_type_error( env, NULL, "invalid argument. Fourth argument must have an imaginary component which is a number." );
221221
assert( status == napi_ok );
222222
return NULL;
223223
}

lib/node_modules/@stdlib/ndarray/base/assign-scalar/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Each provided [ndarray][@stdlib/ndarray/base/ctor] should be an object with the
9191
- **shape**: dimensions.
9292
- **strides**: stride lengths.
9393
- **offset**: index offset.
94-
- **order**: specifies whether an ndarray is row-major (C-style) or column major (Fortran-style).
94+
- **order**: specifies whether an ndarray is row-major (C-style) or column-major (Fortran-style).
9595

9696
</section>
9797

lib/node_modules/@stdlib/ndarray/base/assign-scalar/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function complex2real( x ) {
235235
* - **shape**: dimensions.
236236
* - **strides**: stride lengths.
237237
* - **offset**: index offset.
238-
* - **order**: specifies whether an ndarray is row-major (C-style) or column major (Fortran-style).
238+
* - **order**: specifies whether an ndarray is row-major (C-style) or column-major (Fortran-style).
239239
*
240240
* @param {ArrayLikeObject<Object>} arrays - array-like object containing a zero-dimensional ndarray containing the scalar value and one output ndarray
241241
* @returns {void}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This function accepts the following arguments:
7575

7676
## Notes
7777

78-
- If `value` is a number and `x` has a complex [data type][@stdlib/ndarray/dtypes], the function fills an output ndarray with a complex number whose real component equals the provided scalar `value` and whose imaginary component is zero.
78+
- If `value` is a number and `dtype` is a complex [data type][@stdlib/ndarray/dtypes], the function creates an output ndarray with a complex number whose real component equals the provided scalar `value` and whose imaginary component is zero.
7979
- A `value` must be able to safely cast to the output ndarray [data type][@stdlib/ndarray/dtypes]. Scalar values having floating-point data types (both real and complex) are allowed to downcast to a lower precision data type of the same kind (e.g., a scalar double-precision floating-point number can be used to fill a `'float32'` output ndarray).
8080

8181
</section>

lib/node_modules/@stdlib/ndarray/base/full/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ tape( 'the function throws an error if provided an unrecognized data type', func
107107
];
108108

109109
for ( i = 0; i < values.length; i++ ) {
110-
t.throws( badValue( values[i] ), TypeError, 'throws an error when provided '+values[i] );
110+
t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] );
111111
}
112112
t.end();
113113

0 commit comments

Comments
 (0)