Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jan 28, 2024
1 parent 35f0242 commit 76c81c2
Show file tree
Hide file tree
Showing 37 changed files with 3,966 additions and 105 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/index.js.map

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions strided/bernoulli/test/test.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ tape( 'the function returns a function which returns a reference to the output a
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, out, 1 );
actual = random( out.length, x1, 0, out, 1 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -471,10 +471,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the returned func
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, out, 1 );
random( -1, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, out, 1 );
random( 0, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand Down Expand Up @@ -502,10 +502,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the returned func
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, toAccessorArray( out ), 1 );
random( -1, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, toAccessorArray( out ), 1 );
random( 0, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down Expand Up @@ -1255,7 +1255,7 @@ tape( 'the function returns a function having an `ndarray` method which returns
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random.ndarray( out.length, x1, 1, 0, out, 1, 0 );
actual = random.ndarray( out.length, x1, 0, 0, out, 1, 0 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -1279,10 +1279,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the `ndarray` met
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random.ndarray( -1, x1, 1, 0, out, 1, 0 );
random.ndarray( -1, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random.ndarray( 0, x1, 1, 0, out, 1, 0 );
random.ndarray( 0, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand Down Expand Up @@ -1310,10 +1310,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the `ndarray` met
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random.ndarray( -1, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random.ndarray( -1, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random.ndarray( 0, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random.ndarray( 0, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
10 changes: 5 additions & 5 deletions strided/bernoulli/test/test.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, out, 1 );
actual = random( out.length, x1, 0, out, 1 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -128,10 +128,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, out, 1 );
random( -1, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, out, 1 );
random( 0, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -156,10 +156,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, toAccessorArray( out ), 1 );
random( -1, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, toAccessorArray( out ), 1 );
random( 0, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
10 changes: 5 additions & 5 deletions strided/bernoulli/test/test.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, 0, out, 1, 0 );
actual = random( out.length, x1, 0, 0, out, 1, 0 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -128,10 +128,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, 0, out, 1, 0 );
random( -1, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, 0, out, 1, 0 );
random( 0, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -156,10 +156,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random( -1, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random( 0, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
20 changes: 10 additions & 10 deletions strided/chi/test/test.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ tape( 'the function returns a function which returns a reference to the output a
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, out, 1 );
actual = random( out.length, x1, 0, out, 1 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -471,10 +471,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the returned func
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, out, 1 );
random( -1, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, out, 1 );
random( 0, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand Down Expand Up @@ -502,10 +502,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the returned func
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, toAccessorArray( out ), 1 );
random( -1, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, toAccessorArray( out ), 1 );
random( 0, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down Expand Up @@ -1255,7 +1255,7 @@ tape( 'the function returns a function having an `ndarray` method which returns
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random.ndarray( out.length, x1, 1, 0, out, 1, 0 );
actual = random.ndarray( out.length, x1, 0, 0, out, 1, 0 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -1279,10 +1279,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the `ndarray` met
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random.ndarray( -1, x1, 1, 0, out, 1, 0 );
random.ndarray( -1, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random.ndarray( 0, x1, 1, 0, out, 1, 0 );
random.ndarray( 0, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand Down Expand Up @@ -1310,10 +1310,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the `ndarray` met
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random.ndarray( -1, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random.ndarray( -1, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random.ndarray( 0, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random.ndarray( 0, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
10 changes: 5 additions & 5 deletions strided/chi/test/test.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, out, 1 );
actual = random( out.length, x1, 0, out, 1 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -128,10 +128,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, out, 1 );
random( -1, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, out, 1 );
random( 0, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -156,10 +156,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, toAccessorArray( out ), 1 );
random( -1, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, toAccessorArray( out ), 1 );
random( 0, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
10 changes: 5 additions & 5 deletions strided/chi/test/test.ndarray.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, 0, out, 1, 0 );
actual = random( out.length, x1, 0, 0, out, 1, 0 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -128,10 +128,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, 0, out, 1, 0 );
random( -1, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, 0, out, 1, 0 );
random( 0, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -156,10 +156,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random( -1, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random( 0, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
20 changes: 10 additions & 10 deletions strided/chisquare/test/test.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ tape( 'the function returns a function which returns a reference to the output a
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, out, 1 );
actual = random( out.length, x1, 0, out, 1 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -471,10 +471,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the returned func
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, out, 1 );
random( -1, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, out, 1 );
random( 0, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand Down Expand Up @@ -502,10 +502,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the returned func
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, toAccessorArray( out ), 1 );
random( -1, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, toAccessorArray( out ), 1 );
random( 0, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down Expand Up @@ -1255,7 +1255,7 @@ tape( 'the function returns a function having an `ndarray` method which returns
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random.ndarray( out.length, x1, 1, 0, out, 1, 0 );
actual = random.ndarray( out.length, x1, 0, 0, out, 1, 0 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -1279,10 +1279,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the `ndarray` met
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random.ndarray( -1, x1, 1, 0, out, 1, 0 );
random.ndarray( -1, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random.ndarray( 0, x1, 1, 0, out, 1, 0 );
random.ndarray( 0, x1, 0, 0, out, 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand Down Expand Up @@ -1310,10 +1310,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the `ndarray` met
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random.ndarray( -1, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random.ndarray( -1, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

random.ndarray( 0, x1, 1, 0, toAccessorArray( out ), 1, 0 );
random.ndarray( 0, x1, 0, 0, toAccessorArray( out ), 1, 0 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
10 changes: 5 additions & 5 deletions strided/chisquare/test/test.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
x1 = [ PARAM1[ 0 ] ];
out = zeros( 10, 'generic' );

actual = random( out.length, x1, 1, out, 1 );
actual = random( out.length, x1, 0, out, 1 );
t.strictEqual( actual, out, 'same reference' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -128,10 +128,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, out, 1 );
random( -1, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, out, 1 );
random( 0, x1, 0, out, 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ];
Expand All @@ -156,10 +156,10 @@ tape( 'if provided an `N` parameter less than or equal to `0`, the function leav
out = zeros( 10, 'generic' );
expected = zeros( 10, 'generic' );

random( -1, x1, 1, toAccessorArray( out ), 1 );
random( -1, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

random( 0, x1, 1, toAccessorArray( out ), 1 );
random( 0, x1, 0, toAccessorArray( out ), 1 );
t.deepEqual( out, expected, 'returns expected value' );

x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Expand Down
Loading

0 comments on commit 76c81c2

Please sign in to comment.