Skip to content

Commit f52054e

Browse files
committed
docs: fix 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: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent ef8dc22 commit f52054e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/ndarray/base/unary-strided1d/lib/main_factory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,10 @@ function factory( options ) {
400400
if ( M > ndims ) {
401401
throw new RangeError( format( 'invalid argument. Number of specified dimensions cannot exceed the number of dimensions in the input array. Number of dimensions: %d. Value: [%s].', ndims, join( dims, ',' ) ) );
402402
}
403-
// Compute the number of non-reduced dimensions:
403+
// Compute the number of loop dimensions:
404404
K = ndims - M;
405405

406-
// Verify that any ancillary ndarrays have at least the number of non-reduced dimensions...
406+
// Verify that any ancillary ndarrays have at least the number of loop dimensions...
407407
for ( i = 2; i < N; i++ ) {
408408
if ( arr[ i ].shape.length < K ) {
409409
throw new Error( format( 'invalid argument. Array arguments after the first two arrays must have the same number of loop dimensions. Input array shape: [%s]. Number of loop dimensions: %d. Array shape: [%s] (index: %d).', join( shx, ',' ), K, join( arr[ i ].shape, ',' ), i ) );

0 commit comments

Comments
 (0)