Skip to content

Commit c55f02e

Browse files
Merge branch 'develop' into shubham2204-tcoshf
2 parents 57c5686 + 62019bc commit c55f02e

File tree

234 files changed

+16515
-104
lines changed

Some content is hidden

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

234 files changed

+16515
-104
lines changed

lib/node_modules/@stdlib/array/base/falses/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import falses = require( './index' );
2929
// The compiler throws an error if the function is provided an argument which is not a number...
3030
{
3131
falses( 'abc' ); // $ExpectError
32+
falses( true ); // $ExpectError
3233
falses( false ); // $ExpectError
33-
falses( false ); // $ExpectError
34-
falses( false ); // $ExpectError
34+
falses( null ); // $ExpectError
3535
falses( [] ); // $ExpectError
3636
falses( {} ); // $ExpectError
3737
falses( ( x: number ): number => x ); // $ExpectError

lib/node_modules/@stdlib/array/base/trues/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import trues = require( './index' );
3131
trues( 'abc' ); // $ExpectError
3232
trues( true ); // $ExpectError
3333
trues( false ); // $ExpectError
34-
trues( true ); // $ExpectError
34+
trues( null ); // $ExpectError
3535
trues( [] ); // $ExpectError
3636
trues( {} ); // $ExpectError
3737
trues( ( x: number ): number => x ); // $ExpectError

lib/node_modules/@stdlib/array/nulls/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bench( pkg, function benchmark( b ) {
4141
}
4242
b.toc();
4343
if ( !isCollection( arr ) ) {
44-
b.fail( 'should return a typed array' );
44+
b.fail( 'should return an array' );
4545
}
4646
b.pass( 'benchmark finished' );
4747
b.end();

lib/node_modules/@stdlib/assert/has-dataview-support/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ tape( 'if `DataView` is supported, detection result is `true`', function test( t
7171
}
7272
out = {};
7373
out.buffer = buf;
74-
out._buffer = new Array( byteLength ); // eslint-disable-line no-underscore-dangle
74+
out._buffer = []; // eslint-disable-line no-underscore-dangle
7575
for ( i = 0; i < byteLength; i++ ) {
76-
out._buffer[ i ] = 0; // eslint-disable-line no-underscore-dangle
76+
out._buffer.push( 0 ); // eslint-disable-line no-underscore-dangle
7777
}
7878
out.byteLength = byteLength;
7979
out.byteOffset = byteOffset;

lib/node_modules/@stdlib/blas/base/docs/types/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ import matrixTriangleResolveEnum = require( '@stdlib/blas/base/matrix-triangle-r
8383
import matrixTriangleResolveStr = require( '@stdlib/blas/base/matrix-triangle-resolve-str' );
8484
import matrixTriangleStr2Enum = require( '@stdlib/blas/base/matrix-triangle-str2enum' );
8585
import matrixTriangles = require( '@stdlib/blas/base/matrix-triangles' );
86+
import ndarray = require( '@stdlib/blas/base/ndarray' );
8687
import operationSideEnum2Str = require( '@stdlib/blas/base/operation-side-enum2str' );
8788
import operationSideResolveEnum = require( '@stdlib/blas/base/operation-side-resolve-enum' );
8889
import operationSideResolveStr = require( '@stdlib/blas/base/operation-side-resolve-str' );
@@ -1705,6 +1706,11 @@ interface Namespace {
17051706
*/
17061707
matrixTriangles: typeof matrixTriangles;
17071708

1709+
/**
1710+
* Base ndarray BLAS functions.
1711+
*/
1712+
ndarray: typeof ndarray;
1713+
17081714
/**
17091715
* Returns the BLAS operation side string associated with a BLAS operation side enumeration constant.
17101716
*

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ The namespace exposes the following APIs:
4747

4848
- <span class="signature">[`dasum( arrays )`][@stdlib/blas/base/ndarray/dasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional double-precision floating-point ndarray.</span>
4949
- <span class="signature">[`ddot( arrays )`][@stdlib/blas/base/ndarray/ddot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional double-precision floating-point ndarrays.</span>
50+
- <span class="signature">[`gasum( arrays )`][@stdlib/blas/base/ndarray/gasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional ndarray.</span>
5051
- <span class="signature">[`gdot( arrays )`][@stdlib/blas/base/ndarray/gdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional ndarrays.</span>
5152
- <span class="signature">[`sasum( arrays )`][@stdlib/blas/base/ndarray/sasum]</span><span class="delimiter">: </span><span class="description">calculate the sum of absolute values for all elements in a one-dimensional single-precision floating-point ndarray.</span>
5253
- <span class="signature">[`sdot( arrays )`][@stdlib/blas/base/ndarray/sdot]</span><span class="delimiter">: </span><span class="description">calculate the dot product of two one-dimensional single-precision floating-point ndarrays.</span>
@@ -96,6 +97,8 @@ console.log( objectKeys( ns ) );
9697

9798
[@stdlib/blas/base/ndarray/ddot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/ddot
9899

100+
[@stdlib/blas/base/ndarray/gasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gasum
101+
99102
[@stdlib/blas/base/ndarray/gdot]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/gdot
100103

101104
[@stdlib/blas/base/ndarray/sasum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/base/ndarray/sasum

lib/node_modules/@stdlib/blas/base/ndarray/docs/types/index.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import dasum = require( '@stdlib/blas/base/ndarray/dasum' );
2424
import ddot = require( '@stdlib/blas/base/ndarray/ddot' );
25+
import gasum = require( '@stdlib/blas/base/ndarray/gasum' );
2526
import gdot = require( '@stdlib/blas/base/ndarray/gdot' );
2627
import sasum = require( '@stdlib/blas/base/ndarray/sasum' );
2728
import sdot = require( '@stdlib/blas/base/ndarray/sdot' );
@@ -69,6 +70,23 @@ interface Namespace {
6970
*/
7071
ddot: typeof ddot;
7172

73+
/**
74+
* Computes the sum of absolute values for all elements in a one-dimensional ndarray.
75+
*
76+
* @param arrays - array-like object containing a one-dimensional input ndarray
77+
* @returns sum
78+
*
79+
* @example
80+
* var ndarray = require( '@stdlib/ndarray/base/ctor' );
81+
*
82+
* var xbuf = [ 1.0, -2.0, 3.0, -4.0, 5.0 ];
83+
* var x = new ndarray( 'generic', xbuf, [ 5 ], [ 1 ], 0, 'row-major' );
84+
*
85+
* var y = ns.gasum( [ x ] );
86+
* // returns 15.0
87+
*/
88+
gasum: typeof gasum;
89+
7290
/**
7391
* Computes the dot product of two one-dimensional ndarrays.
7492
*

lib/node_modules/@stdlib/blas/base/ndarray/lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ setReadOnly( ns, 'dasum', require( '@stdlib/blas/base/ndarray/dasum' ) );
5454
*/
5555
setReadOnly( ns, 'ddot', require( '@stdlib/blas/base/ndarray/ddot' ) );
5656

57+
/**
58+
* @name gasum
59+
* @memberof ns
60+
* @readonly
61+
* @type {Function}
62+
* @see {@link module:@stdlib/blas/base/ndarray/gasum}
63+
*/
64+
setReadOnly( ns, 'gasum', require( '@stdlib/blas/base/ndarray/gasum' ) );
65+
5766
/**
5867
* @name gdot
5968
* @memberof ns

lib/node_modules/@stdlib/blas/ext/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ The namespace contains the following:
4646
<div class="namespace-toc">
4747

4848
- <span class="signature">[`base`][@stdlib/blas/ext/base]</span><span class="delimiter">: </span><span class="description">base (i.e., lower-level) extensions to basic linear algebra subprograms (BLAS).</span>
49+
- <span class="signature">[`circshift( x, k[, options] )`][@stdlib/blas/ext/circshift]</span><span class="delimiter">: </span><span class="description">circularly shift the elements of an input ndarray by a specified number of positions along one or more ndarray dimensions.</span>
4950
- <span class="signature">[`cusum( x[, initial][, options] )`][@stdlib/blas/ext/cusum]</span><span class="delimiter">: </span><span class="description">compute the cumulative sum along one or more ndarray dimensions.</span>
5051
- <span class="signature">[`findIndex( x[, options], clbk[, thisArg] )`][@stdlib/blas/ext/find-index]</span><span class="delimiter">: </span><span class="description">return the index of the first element along an ndarray dimension which passes a test implemented by a predicate function.</span>
5152
- <span class="signature">[`findLastIndex( x[, options], clbk[, thisArg] )`][@stdlib/blas/ext/find-last-index]</span><span class="delimiter">: </span><span class="description">return the index of the last element along an ndarray dimension which passes a test implemented by a predicate function.</span>
5253
- <span class="signature">[`indexOf( x, searchElement[, fromIndex][, options] )`][@stdlib/blas/ext/index-of]</span><span class="delimiter">: </span><span class="description">return the first index of a specified search element along an ndarray dimension.</span>
54+
- <span class="signature">[`join( x[, options] )`][@stdlib/blas/ext/join]</span><span class="delimiter">: </span><span class="description">return an ndarray created by joining elements using a separator along one or more ndarray dimensions.</span>
5355
- <span class="signature">[`lastIndexOf( x, searchElement[, fromIndex][, options] )`][@stdlib/blas/ext/last-index-of]</span><span class="delimiter">: </span><span class="description">return the last index of a specified search element along an ndarray dimension.</span>
5456
- <span class="signature">[`linspace( shape, start, stop[, endpoint][, options] )`][@stdlib/blas/ext/linspace]</span><span class="delimiter">: </span><span class="description">return a new ndarray filled with linearly spaced values over a specified interval along one or more ndarray dimensions.</span>
5557
- <span class="signature">[`sorthp( x[, sortOrder][, options] )`][@stdlib/blas/ext/sorthp]</span><span class="delimiter">: </span><span class="description">sort an input ndarray along one or more ndarray dimensions using heapsort.</span>
@@ -99,6 +101,8 @@ console.log( objectKeys( ns ) );
99101

100102
[@stdlib/blas/ext/base]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base
101103

104+
[@stdlib/blas/ext/circshift]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/circshift
105+
102106
[@stdlib/blas/ext/cusum]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/cusum
103107

104108
[@stdlib/blas/ext/find-index]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/find-index
@@ -107,6 +111,8 @@ console.log( objectKeys( ns ) );
107111

108112
[@stdlib/blas/ext/index-of]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/index-of
109113

114+
[@stdlib/blas/ext/join]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/join
115+
110116
[@stdlib/blas/ext/last-index-of]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/last-index-of
111117

112118
[@stdlib/blas/ext/linspace]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/linspace

lib/node_modules/@stdlib/blas/ext/base/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ var o = ns;
172172
- <span class="signature">[`sdssum( N, x, strideX )`][@stdlib/blas/ext/base/sdssum]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements using extended accumulation.</span>
173173
- <span class="signature">[`sdssumpw( N, x, strideX )`][@stdlib/blas/ext/base/sdssumpw]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements using pairwise summation with extended accumulation.</span>
174174
- <span class="signature">[`sfill( N, alpha, x, strideX )`][@stdlib/blas/ext/base/sfill]</span><span class="delimiter">: </span><span class="description">fill a single-precision floating-point strided array with a specified scalar constant.</span>
175+
- <span class="signature">[`sindexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/sindex-of-row]</span><span class="delimiter">: </span><span class="description">return the index of the first row in a single-precision floating-point input matrix which has the same elements as a provided search vector.</span>
175176
- <span class="signature">[`sindexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/sindex-of]</span><span class="delimiter">: </span><span class="description">return the first index of a specified search element in a single-precision floating-point strided array.</span>
176177
- <span class="signature">[`slastIndexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/slast-index-of]</span><span class="delimiter">: </span><span class="description">return the last index of a specified search element in a single-precision floating-point strided array.</span>
177178
- <span class="signature">[`slinspace( N, start, stop, endpoint, x, strideX )`][@stdlib/blas/ext/base/slinspace]</span><span class="delimiter">: </span><span class="description">fill a single-precision floating-point strided array with linearly spaced values over a specified interval.</span>
@@ -180,6 +181,7 @@ var o = ns;
180181
- <span class="signature">[`snansumkbn2( N, x, strideX )`][@stdlib/blas/ext/base/snansumkbn2]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using a second-order iterative Kahan–Babuška algorithm.</span>
181182
- <span class="signature">[`snansumors( N, x, strideX )`][@stdlib/blas/ext/base/snansumors]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using ordinary recursive summation.</span>
182183
- <span class="signature">[`snansumpw( N, x, strideX )`][@stdlib/blas/ext/base/snansumpw]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements, ignoring `NaN` values and using pairwise summation.</span>
184+
- <span class="signature">[`soneTo( N, x, strideX )`][@stdlib/blas/ext/base/sone-to]</span><span class="delimiter">: </span><span class="description">fill a single-precision floating-point strided array with linearly spaced numeric elements which increment by `1` starting from one.</span>
183185
- <span class="signature">[`srev( N, x, strideX )`][@stdlib/blas/ext/base/srev]</span><span class="delimiter">: </span><span class="description">reverse a single-precision floating-point strided array in-place.</span>
184186
- <span class="signature">[`ssort2hp( N, order, x, strideX, y, strideY )`][@stdlib/blas/ext/base/ssort2hp]</span><span class="delimiter">: </span><span class="description">simultaneously sort two single-precision floating-point strided arrays based on the sort order of the first array using heapsort.</span>
185187
- <span class="signature">[`ssort2ins( N, order, x, strideX, y, strideY )`][@stdlib/blas/ext/base/ssort2ins]</span><span class="delimiter">: </span><span class="description">simultaneously sort two single-precision floating-point strided arrays based on the sort order of the first array using insertion sort.</span>
@@ -197,6 +199,7 @@ var o = ns;
197199
- <span class="signature">[`zfill( N, alpha, x, strideX )`][@stdlib/blas/ext/base/zfill]</span><span class="delimiter">: </span><span class="description">fill a double-precision complex floating-point strided array with a specified scalar constant.</span>
198200
- <span class="signature">[`zsum( N, x, strideX )`][@stdlib/blas/ext/base/zsum]</span><span class="delimiter">: </span><span class="description">calculate the sum of double-precision complex floating-point strided array elements.</span>
199201
- <span class="signature">[`zsumkbn( N, x, strideX )`][@stdlib/blas/ext/base/zsumkbn]</span><span class="delimiter">: </span><span class="description">calculate the sum of double-precision complex floating-point strided array elements using an improved Kahan–Babuška algorithm.</span>
202+
- <span class="signature">[`zzeroTo( N, x, strideX )`][@stdlib/blas/ext/base/zzero-to]</span><span class="delimiter">: </span><span class="description">fill a double-precision complex floating-point strided array with linearly spaced numeric elements which increment by `1` starting from zero.</span>
200203

201204
</div>
202205

@@ -505,6 +508,8 @@ console.log( objectKeys( ns ) );
505508

506509
[@stdlib/blas/ext/base/sfill]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/sfill
507510

511+
[@stdlib/blas/ext/base/sindex-of-row]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/sindex-of-row
512+
508513
[@stdlib/blas/ext/base/sindex-of]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/sindex-of
509514

510515
[@stdlib/blas/ext/base/slast-index-of]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/slast-index-of
@@ -521,6 +526,8 @@ console.log( objectKeys( ns ) );
521526

522527
[@stdlib/blas/ext/base/snansumpw]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/snansumpw
523528

529+
[@stdlib/blas/ext/base/sone-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/sone-to
530+
524531
[@stdlib/blas/ext/base/srev]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/srev
525532

526533
[@stdlib/blas/ext/base/ssort2hp]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/ssort2hp
@@ -555,6 +562,8 @@ console.log( objectKeys( ns ) );
555562

556563
[@stdlib/blas/ext/base/zsumkbn]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/zsumkbn
557564

565+
[@stdlib/blas/ext/base/zzero-to]: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base/zzero-to
566+
558567
<!-- </toc-links> -->
559568

560569
</section>

0 commit comments

Comments
 (0)