Skip to content

Commit 820b370

Browse files
Merge branch 'develop' into frechet-mod
2 parents 29c9c95 + 3609aed commit 820b370

69 files changed

Lines changed: 2864 additions & 223 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/_tools/lint/pkg-json-names/test/test.lint.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var resolve = require( 'path' ).resolve;
2525
var tape = require( 'tape' );
2626
var isObjectArray = require( '@stdlib/assert/is-object-array' );
2727
var contains = require( '@stdlib/assert/contains' );
28+
var lint = require( './../lib/lint.js' );
2829

2930

3031
// FIXTURES //
@@ -35,8 +36,6 @@ var missingNamePath = join( __dirname, 'fixtures', 'missing-name.json' );
3536
var wrongScopePath = join( __dirname, 'fixtures', 'wrong-scope.json' );
3637
var nameMismatchPath = join( __dirname, 'fixtures', 'name-mismatch.json' );
3738

38-
var lint = require( './../lib/lint.js' );
39-
4039

4140
// TESTS //
4241

lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bench( pkg, function benchmark( b ) {
3333
var arr;
3434
var i;
3535

36-
arr = new Array( 100 );
36+
arr = new Array( 100 ); // eslint-disable-line stdlib/no-new-array
3737

3838
b.tic();
3939
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/blas/base/dtrsv/test/test.ndarray.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
4646
var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' );
4747
var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' );
4848
var rcap = require( './fixtures/row_major_complex_access_pattern.json' );
49-
5049
var clntnu = require( './fixtures/column_major_l_nt_nu.json' );
5150
var cltnu = require( './fixtures/column_major_l_t_nu.json' );
5251
var clntu = require( './fixtures/column_major_l_nt_u.json' );
@@ -62,7 +61,7 @@ var cox = require( './fixtures/column_major_ox.json' );
6261
var csa1sa2 = require( './fixtures/column_major_sa1_sa2.json' );
6362
var csa1nsa2 = require( './fixtures/column_major_sa1n_sa2.json' );
6463
var csa1sa2n = require( './fixtures/column_major_sa1_sa2n.json' );
65-
var csa1nsa2n = require( './fixtures/column_major_sa1_sa2n.json' );
64+
var csa1nsa2n = require( './fixtures/column_major_sa1n_sa2n.json' );
6665
var ccap = require( './fixtures/column_major_complex_access_pattern.json' );
6766

6867

lib/node_modules/@stdlib/blas/base/gsyr/test/test.ndarray.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
4141
var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' );
4242
var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' );
4343
var rcap = require( './fixtures/row_major_complex_access_pattern.json' );
44-
4544
var cu = require( './fixtures/column_major_u.json' );
4645
var cl = require( './fixtures/column_major_l.json' );
4746
var cxp = require( './fixtures/column_major_xp.json' );

lib/node_modules/@stdlib/blas/base/ssyr2/test/test.ssyr2.native.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ var rxpyp = require( './fixtures/row_major_xpyp.json' );
3737
var rxnyp = require( './fixtures/row_major_xnyp.json' );
3838
var rxpyn = require( './fixtures/row_major_xpyn.json' );
3939
var rxnyn = require( './fixtures/row_major_xnyn.json' );
40-
4140
var cu = require( './fixtures/column_major_u.json' );
4241
var cl = require( './fixtures/column_major_l.json' );
4342
var cx0 = require( './fixtures/column_major_x0.json' );

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ interface Routine {
6060
* @param N - number of elements along each dimension in the matrix `A`
6161
* @param A - input matrix
6262
* @param strideA1 - stride of the first dimension of `A`
63-
* @param strideA2 - stride of the first dimension of `A`
63+
* @param strideA2 - stride of the second dimension of `A`
6464
* @param offsetA - starting index for `A`
6565
* @param x - input vector
6666
* @param strideX - `x` stride length
@@ -73,7 +73,7 @@ interface Routine {
7373
* var A = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 0.0, 0.0, 1.0 ] ); // => [ [ 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0 ], [ 0.0, 0.0, 1.0 ] ]
7474
* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
7575
*
76-
* strsv.ndarray( 'lower', 'no-transpose', 'unit', 3, A, 3, 1, 0, x, 1, 0 );
76+
* strsv.ndarray( 'upper', 'no-transpose', 'unit', 3, A, 3, 1, 0, x, 1, 0 );
7777
* // x => <Float32Array>[ 0.0, -4.0, 3.0 ]
7878
*/
7979
ndarray( uplo: MatrixTriangle, trans: TransposeOperation, diag: DiagonalType, N: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, x: Float32Array, strideX: number, offsetX: number ): Float32Array;

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,15 @@ setReadOnly( ns, 'soneTo', require( '@stdlib/blas/ext/base/sone-to' ) );
13501350
*/
13511351
setReadOnly( ns, 'srev', require( '@stdlib/blas/ext/base/srev' ) );
13521352

1353+
/**
1354+
* @name ssort
1355+
* @memberof ns
1356+
* @readonly
1357+
* @type {Function}
1358+
* @see {@link module:@stdlib/blas/ext/base/ssort}
1359+
*/
1360+
setReadOnly( ns, 'ssort', require( '@stdlib/blas/ext/base/ssort' ) );
1361+
13531362
/**
13541363
* @name ssort2hp
13551364
* @memberof ns

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

Lines changed: 93 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@
2121
/* eslint-disable max-lines */
2222

2323
import base = require( '@stdlib/blas/ext/base' );
24+
import circshift = require( '@stdlib/blas/ext/circshift' );
2425
import cusum = require( '@stdlib/blas/ext/cusum' );
2526
import findIndex = require( '@stdlib/blas/ext/find-index' );
2627
import findLastIndex = require( '@stdlib/blas/ext/find-last-index' );
2728
import indexOf = require( '@stdlib/blas/ext/index-of' );
29+
import join = require( '@stdlib/blas/ext/join' );
2830
import lastIndexOf = require( '@stdlib/blas/ext/last-index-of' );
2931
import linspace = require( '@stdlib/blas/ext/linspace' );
3032
import sorthp = require( '@stdlib/blas/ext/sorthp' );
3133
import sum = require( '@stdlib/blas/ext/sum' );
3234
import toSortedhp = require( '@stdlib/blas/ext/to-sortedhp' );
35+
import zeroTo = require( '@stdlib/blas/ext/zero-to' );
3336

3437
/**
3538
* Interface describing the `ext` namespace.
@@ -40,6 +43,35 @@ interface Namespace {
4043
*/
4144
base: typeof base;
4245

46+
/**
47+
* Circularly shifts the elements of an input ndarray by a specified number of positions along one or more ndarray dimensions.
48+
*
49+
* ## Notes
50+
*
51+
* - The input ndarray is shifted **in-place** (i.e., the input ndarray is **mutated**).
52+
* - When shifting elements along a single dimension, a positive `k` shifts elements to the right (toward higher indices), and a negative `k` shifts elements to the left (toward lower indices). If `k` is zero, the input ndarray is left unchanged.
53+
*
54+
* @param x - input ndarray
55+
* @param k - number of positions to shift
56+
* @param options - function options
57+
* @returns input ndarray
58+
*
59+
* @example
60+
* var array = require( '@stdlib/ndarray/array' );
61+
*
62+
* var x = array( [ 1.0, 2.0, 3.0, 4.0 ], {
63+
* 'shape': [ 2, 2 ],
64+
* 'order': 'row-major'
65+
* });
66+
* // returns <ndarray>[ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ]
67+
*
68+
* var y = ns.circshift( x, 1, {
69+
* 'dims': [ 0 ]
70+
* });
71+
* // returns <ndarray>[ [ 3.0, 4.0 ], [ 1.0, 2.0 ] ]
72+
*/
73+
circshift: typeof circshift;
74+
4375
/**
4476
* Computes the cumulative sum along one or more ndarray dimensions.
4577
*
@@ -215,6 +247,40 @@ interface Namespace {
215247
*/
216248
indexOf: typeof indexOf;
217249

250+
/**
251+
* Returns an ndarray created by joining elements using a separator along one or more ndarray dimensions.
252+
*
253+
* @param x - input ndarray
254+
* @param options - function options
255+
* @returns output ndarray
256+
*
257+
* @example
258+
* var array = require( '@stdlib/ndarray/array' );
259+
*
260+
* var x = array( [ 1.0, 2.0, 3.0 ] );
261+
*
262+
* var y = ns.join( x );
263+
* // returns <ndarray>[ '1,2,3' ]
264+
*
265+
* @example
266+
* var empty = require( '@stdlib/ndarray/empty' );
267+
* var array = require( '@stdlib/ndarray/array' );
268+
*
269+
* var x = array( [ 1.0, 2.0, 3.0 ], {
270+
* 'dtype': 'generic'
271+
* });
272+
* var y = empty( [], {
273+
* 'dtype': 'generic'
274+
* });
275+
*
276+
* var out = ns.join.assign( x, y );
277+
* // returns <ndarray>[ '1,2,3' ]
278+
*
279+
* var bool = ( out === y );
280+
* // returns true
281+
*/
282+
join: typeof join;
283+
218284
/**
219285
* Returns the last index of a specified search element along an ndarray dimension.
220286
*
@@ -270,29 +336,20 @@ interface Namespace {
270336
* @param options - function options
271337
*
272338
* @example
273-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
274-
*
275339
* var out = ns.linspace( [ 2, 4 ], 0.0, 3.0 );
276-
* // returns <ndarray>
277-
*
278-
* var arr = ndarray2array( out );
279-
* // returns [ [ 0.0, 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0, 3.0 ] ]
340+
* // returns <ndarray>[ [ 0.0, 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0, 3.0 ] ]
280341
*
281342
* @example
282343
* var zeros = require( '@stdlib/ndarray/zeros' );
283-
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
284344
*
285345
* var x = zeros( [ 2, 4 ] );
286346
* // returns <ndarray>
287347
*
288348
* var out = ns.linspace.assign( x, 0.0, 3.0 );
289-
* // returns <ndarray>
349+
* // returns <ndarray>[ [ 0.0, 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0, 3.0 ] ]
290350
*
291351
* var bool = ( out === x );
292352
* // returns true
293-
*
294-
* var arr = ndarray2array( out );
295-
* // returns [ [ 0.0, 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0, 3.0 ] ]
296353
*/
297354
linspace: typeof linspace;
298355

@@ -422,6 +479,31 @@ interface Namespace {
422479
* // returns true
423480
*/
424481
toSortedhp: typeof toSortedhp;
482+
483+
/**
484+
* Returns a new ndarray filled with linearly spaced numeric elements which increment by 1 starting from zero along one or more ndarray dimensions.
485+
*
486+
* @param shape - array shape
487+
* @param options - function options
488+
* @returns output ndarray
489+
*
490+
* @example
491+
* var out = ns.zeroTo( [ 2, 3 ] );
492+
* // returns <ndarray>[ [ 0.0, 1.0, 2.0 ], [ 0.0, 1.0, 2.0 ] ]
493+
*
494+
* @example
495+
* var zeros = require( '@stdlib/ndarray/zeros' );
496+
*
497+
* var x = zeros( [ 2, 3 ] );
498+
* // returns <ndarray>[ [ 0.0, 0.0, 0.0 ], [ 0.0, 0.0, 0.0 ] ]
499+
*
500+
* var out = ns.zeroTo.assign( x );
501+
* // returns <ndarray>[ [ 0.0, 1.0, 2.0 ], [ 0.0, 1.0, 2.0 ] ]
502+
*
503+
* var bool = ( out === x );
504+
* // returns true
505+
*/
506+
zeroTo: typeof zeroTo;
425507
}
426508

427509
/**

lib/node_modules/@stdlib/error/tools/msg2id/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* var msg2id = require( '@stdlib/error/tools/msg2id' );
2828
*
2929
* var v = msg2id( 'invalid option. `%s` option must be an array. Option: `%s`.' );
30-
* // returns '8t'
30+
* // returns '8Z'
3131
*/
3232

3333
// MODULES //

lib/node_modules/@stdlib/math/base/special/roundb/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ tape( 'the function supports rounding a numeric value to a desired number of dec
162162
tape( 'due to floating-point rounding error, rounding a numeric value can result in unexpected behavior', function test( t ) {
163163
var x;
164164

165-
x = 0.2 + 0.1; // => 0.30000000000000004
165+
x = 0.2 + 0.1; // returns 0.30000000000000004
166166
t.strictEqual( roundb( x, -16, 10 ), 0.3000000000000001, 'equals 0.3000000000000001 and not 0.3' );
167167

168168
x = 24.616838129811768;

0 commit comments

Comments
 (0)