Skip to content

Commit faabdd4

Browse files
authored
Merge branch 'develop' into ndarray-drange
Signed-off-by: Aayush Khanna <[email protected]>
2 parents d3e8c39 + 1aa67dd commit faabdd4

File tree

361 files changed

+7789
-2441
lines changed

Some content is hidden

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

361 files changed

+7789
-2441
lines changed

lib/node_modules/@stdlib/_tools/changelog/recommend-version-bump/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function recommendVersionBump( commits ) {
4949
if ( hasFeature ) {
5050
return 'minor';
5151
}
52-
if ( hasFix) {
52+
if ( hasFix ) {
5353
return 'patch';
5454
}
5555
return null;

lib/node_modules/@stdlib/_tools/eslint/rules/no-empty-comments/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var rule;
3131
* @param {Object} context - ESLint context
3232
* @returns {Object} validators
3333
*/
34-
function main(context) {
34+
function main( context ) {
3535
var comments;
3636
var visited;
3737
var source;
@@ -45,7 +45,7 @@ function main(context) {
4545
* @private
4646
* @param {Object} comment - comment node
4747
*/
48-
function report(comment) {
48+
function report( comment ) {
4949
context.report({
5050
'node': null,
5151
'message': 'Empty comments are not allowed',

lib/node_modules/@stdlib/_tools/eslint/rules/require-globals/test/fixtures/invalid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ test = {
134134
' var z;',
135135
'',
136136
' z = new Float64Array( m * m );',
137-
' for ( i = 0; i < m; i++) {',
137+
' for ( i = 0; i < m; i++ ) {',
138138
' for ( j = 0; j < m; j++ ) {',
139139
' s = 0;',
140140
' for ( k = 0; k < m; k++ ) {',

lib/node_modules/@stdlib/_tools/scripts/create_namespace_types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function create( fullPath ) {
235235
RE = new RegExp( 'setReadOnly\\( '+nsIdentifier+', \'([a-z0-9_]+)\', require\\( \'([^\']+)\' \\) \\)', 'ig' );
236236
match = RE.exec( indexFile );
237237
}
238-
while ( match !== null) {
238+
while ( match !== null ) {
239239
name = match[ 1 ];
240240
pkgPath = match[ 2 ];
241241

lib/node_modules/@stdlib/array/base/cuevery-by/lib/assign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function indexed( x, out, stride, offset, predicate, thisArg ) {
6161
io += stride;
6262
continue;
6363
}
64-
if ( !predicate.call( thisArg, x[ i ], i, x )) {
64+
if ( !predicate.call( thisArg, x[ i ], i, x ) ) {
6565
flg = false;
6666
}
6767
out[ io ] = flg;

lib/node_modules/@stdlib/array/base/ones2d/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ console.log( arr );
103103

104104
<section class="related">
105105

106+
* * *
107+
108+
## See Also
109+
110+
- <span class="package-name">[`@stdlib/array/base/zeros2d`][@stdlib/array/base/zeros2d]</span><span class="delimiter">: </span><span class="description">create a zero-filled two-dimensional nested array.</span>
111+
- <span class="package-name">[`@stdlib/array/base/ones`][@stdlib/array/base/ones]</span><span class="delimiter">: </span><span class="description">create a generic array filled with ones.</span>
112+
- <span class="package-name">[`@stdlib/array/base/ones3d`][@stdlib/array/base/ones3d]</span><span class="delimiter">: </span><span class="description">create a three-dimensional nested array filled with ones.</span>
113+
- <span class="package-name">[`@stdlib/array/base/ones4d`][@stdlib/array/base/ones4d]</span><span class="delimiter">: </span><span class="description">create a four-dimensional nested array filled with ones.</span>
114+
- <span class="package-name">[`@stdlib/array/base/ones5d`][@stdlib/array/base/ones5d]</span><span class="delimiter">: </span><span class="description">create a five-dimensional nested array filled with ones.</span>
115+
- <span class="package-name">[`@stdlib/array/base/onesnd`][@stdlib/array/base/onesnd]</span><span class="delimiter">: </span><span class="description">create an n-dimensional nested array filled with ones.</span>
116+
106117
</section>
107118

108119
<!-- /.related -->
@@ -111,6 +122,22 @@ console.log( arr );
111122

112123
<section class="links">
113124

125+
<!-- <related-links> -->
126+
127+
[@stdlib/array/base/zeros2d]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/zeros2d
128+
129+
[@stdlib/array/base/ones]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/ones
130+
131+
[@stdlib/array/base/ones3d]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/ones3d
132+
133+
[@stdlib/array/base/ones4d]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/ones4d
134+
135+
[@stdlib/array/base/ones5d]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/ones5d
136+
137+
[@stdlib/array/base/onesnd]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/onesnd
138+
139+
<!-- </related-links> -->
140+
114141
</section>
115142

116143
<!-- /.links -->

lib/node_modules/@stdlib/array/base/take-map/lib/assign.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ var ind = require( '@stdlib/ndarray/base/ind' ).factory;
4747
* var out = [ 0, 0, 0, 0 ];
4848
*
4949
* function clbk( val ){
50-
return val;
51-
}
50+
* return val;
51+
* }
5252
*
5353
* var arr = takeMapIndexed( x, indices, 'throw', out, 1, 0, clbk );
5454
* // returns [ 4, 2, 3, 1 ]
@@ -73,7 +73,7 @@ function takeMapIndexed( x, indices, mode, out, stride, offset, clbk ) {
7373
out[ io ] = x[ j ];
7474
io += stride;
7575
}
76-
for (i = 0; i<out.length; i++) {
76+
for ( i = 0; i < out.length; i++ ) {
7777
// eslint-disable-next-line no-useless-call
7878
out[i] = clbk.call( null, out[i], i );
7979
}
@@ -137,7 +137,7 @@ function accessorsMap( x, indices, mode, out, stride, offset, clbk ) {
137137

138138
// Extract each desired element from the provided array...
139139
io = offset;
140-
for (i = 0; i < idata.length; i++) {
140+
for ( i = 0; i < idata.length; i++ ) {
141141
j = getIndex( iget( idata, i ), max );
142142

143143
// eslint-disable-next-line no-useless-call

lib/node_modules/@stdlib/array/base/unary5d-by/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ function identity( value: number ): number {
139139
unary5dBy( [ x, y ], [ 1, 1, 1, 2, 2 ] ); // $ExpectError
140140
unary5dBy( [ x, y ], [ 1, 1, 1, 2, 2 ], identity ); // $ExpectError
141141
unary5dBy( [ x, y ], [ 1, 1, 1, 2, 2 ], identity, identity, {}, {} ); // $ExpectError
142-
}
142+
}

lib/node_modules/@stdlib/array/fixed-endian-factory/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
610610
}
611611
buf = this._buffer;
612612
out = [];
613-
for ( i = 0; i < this._length; i++) {
613+
for ( i = 0; i < this._length; i++ ) {
614614
v = buf[ GETTER ]( i*BYTES_PER_ELEMENT, this._isLE );
615615
if ( predicate.call( thisArg, v, i, this ) ) {
616616
out.push( v );

lib/node_modules/@stdlib/assert/is-well-formed-string/lib/iswellformed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var RE_UTF16_HIGH_SURROGATE = /[\uD800-\uDBFF]/;
4040
* var bool = isWellFormed( new String( '\uDC00' ) );
4141
* // returns false
4242
*/
43-
function isWellFormed(str) {
43+
function isWellFormed( str ) {
4444
var i;
4545
for ( i = 0; i < str.length; i++ ) {
4646
// Checking if a low surrogate is present at the beginning

0 commit comments

Comments
 (0)