Skip to content

Commit 91a321e

Browse files
committed
chore: clean-up and allow non-string dtypes
--- 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: passed - task: lint_repl_help status: passed - 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: passed - 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: passed - task: lint_license_headers status: passed ---
1 parent 3762b83 commit 91a321e

91 files changed

Lines changed: 251 additions & 280 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/node_modules/@stdlib/ndarray/base/for-each/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# forEach
2222

23-
> Invoke a callback function once for each ndarray element.
23+
> Invoke a callback function once for each element in an ndarray.
2424
2525
<section class="intro">
2626

@@ -38,7 +38,7 @@ var forEach = require( '@stdlib/ndarray/base/for-each' );
3838

3939
#### forEach( arrays, fcn\[, thisArg] )
4040

41-
Invokes a callback function once for each ndarray element.
41+
Invokes a callback function once for each element in an ndarray.
4242

4343
```javascript
4444
var Float64Array = require( '@stdlib/array/float64' );
@@ -73,7 +73,7 @@ forEach( [ x ], naryFunction( log, 1 ) );
7373

7474
The function accepts the following arguments:
7575

76-
- **arrays**: array-like object containing an ndarray.
76+
- **arrays**: array-like object containing an input ndarray.
7777
- **fcn**: callback to apply.
7878
- **thisArg**: callback execution context.
7979

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.10d_blocked_columnmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var order = 'column-major';
3939
// FUNCTIONS //
4040

4141
/**
42-
* Callback invoked for each ndarray element.
42+
* Callback invoked for each element in an ndarray.
4343
*
4444
* @private
4545
* @param {number} value - array element
@@ -57,7 +57,7 @@ function fcn( value ) {
5757
* @private
5858
* @param {PositiveInteger} len - ndarray length
5959
* @param {NonNegativeIntegerArray} shape - ndarray shape
60-
* @param {string} xtype - output ndarray data type
60+
* @param {string} xtype - input ndarray data type
6161
* @returns {Function} benchmark function
6262
*/
6363
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.10d_blocked_rowmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var order = 'row-major';
3939
// FUNCTIONS //
4040

4141
/**
42-
* Callback invoked for each ndarray element.
42+
* Callback invoked for each element in an ndarray.
4343
*
4444
* @private
4545
* @param {number} value - array element
@@ -57,7 +57,7 @@ function fcn( value ) {
5757
* @private
5858
* @param {PositiveInteger} len - ndarray length
5959
* @param {NonNegativeIntegerArray} shape - ndarray shape
60-
* @param {string} xtype - output ndarray data type
60+
* @param {string} xtype - input ndarray data type
6161
* @returns {Function} benchmark function
6262
*/
6363
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.10d_columnmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var order = 'column-major';
3939
// FUNCTIONS //
4040

4141
/**
42-
* Callback invoked for each ndarray element.
42+
* Callback invoked for each element in an ndarray.
4343
*
4444
* @private
4545
* @param {number} value - array element
@@ -57,7 +57,7 @@ function fcn( value ) {
5757
* @private
5858
* @param {PositiveInteger} len - ndarray length
5959
* @param {NonNegativeIntegerArray} shape - ndarray shape
60-
* @param {string} xtype - output ndarray data type
60+
* @param {string} xtype - input ndarray data type
6161
* @returns {Function} benchmark function
6262
*/
6363
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.10d_rowmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var order = 'row-major';
3939
// FUNCTIONS //
4040

4141
/**
42-
* Callback invoked for each ndarray element.
42+
* Callback invoked for each element in an ndarray.
4343
*
4444
* @private
4545
* @param {number} value - array element
@@ -57,7 +57,7 @@ function fcn( value ) {
5757
* @private
5858
* @param {PositiveInteger} len - ndarray length
5959
* @param {NonNegativeIntegerArray} shape - ndarray shape
60-
* @param {string} xtype - output ndarray data type
60+
* @param {string} xtype - input ndarray data type
6161
* @returns {Function} benchmark function
6262
*/
6363
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.11d_columnmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var order = 'column-major';
3939
// FUNCTIONS //
4040

4141
/**
42-
* Callback invoked for each ndarray element.
42+
* Callback invoked for each element in an ndarray.
4343
*
4444
* @private
4545
* @param {number} value - array element
@@ -57,7 +57,7 @@ function fcn( value ) {
5757
* @private
5858
* @param {PositiveInteger} len - ndarray length
5959
* @param {NonNegativeIntegerArray} shape - ndarray shape
60-
* @param {string} xtype - output ndarray data type
60+
* @param {string} xtype - input ndarray data type
6161
* @returns {Function} benchmark function
6262
*/
6363
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.11d_rowmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var order = 'row-major';
3939
// FUNCTIONS //
4040

4141
/**
42-
* Callback invoked for each ndarray element.
42+
* Callback invoked for each element in an ndarray.
4343
*
4444
* @private
4545
* @param {number} value - array element
@@ -57,7 +57,7 @@ function fcn( value ) {
5757
* @private
5858
* @param {PositiveInteger} len - ndarray length
5959
* @param {NonNegativeIntegerArray} shape - ndarray shape
60-
* @param {string} xtype - output ndarray data type
60+
* @param {string} xtype - input ndarray data type
6161
* @returns {Function} benchmark function
6262
*/
6363
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.1d_columnmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var order = 'column-major';
3838
// FUNCTIONS //
3939

4040
/**
41-
* Callback invoked for each ndarray element.
41+
* Callback invoked for each element in an ndarray.
4242
*
4343
* @private
4444
* @param {number} value - array element
@@ -56,7 +56,7 @@ function fcn( value ) {
5656
* @private
5757
* @param {PositiveInteger} len - ndarray length
5858
* @param {NonNegativeIntegerArray} shape - ndarray shape
59-
* @param {string} xtype - output ndarray data type
59+
* @param {string} xtype - input ndarray data type
6060
* @returns {Function} benchmark function
6161
*/
6262
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.1d_rowmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var order = 'row-major';
3838
// FUNCTIONS //
3939

4040
/**
41-
* Callback invoked for each ndarray element.
41+
* Callback invoked for each element in an ndarray.
4242
*
4343
* @private
4444
* @param {number} value - array element
@@ -56,7 +56,7 @@ function fcn( value ) {
5656
* @private
5757
* @param {PositiveInteger} len - ndarray length
5858
* @param {NonNegativeIntegerArray} shape - ndarray shape
59-
* @param {string} xtype - output ndarray data type
59+
* @param {string} xtype - input ndarray data type
6060
* @returns {Function} benchmark function
6161
*/
6262
function createBenchmark( len, shape, xtype ) {

lib/node_modules/@stdlib/ndarray/base/for-each/benchmark/benchmark.2d_blocked_columnmajor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var order = 'column-major';
4040
// FUNCTIONS //
4141

4242
/**
43-
* Callback invoked for each ndarray element.
43+
* Callback invoked for each element in an ndarray.
4444
*
4545
* @private
4646
* @param {number} value - array element
@@ -58,7 +58,7 @@ function fcn( value ) {
5858
* @private
5959
* @param {PositiveInteger} len - ndarray length
6060
* @param {NonNegativeIntegerArray} shape - ndarray shape
61-
* @param {string} xtype - output ndarray data type
61+
* @param {string} xtype - input ndarray data type
6262
* @returns {Function} benchmark function
6363
*/
6464
function createBenchmark( len, shape, xtype ) {

0 commit comments

Comments
 (0)