Skip to content

Commit 439d442

Browse files
committed
build: fix strides and add config files
1 parent 06f1bab commit 439d442

File tree

9 files changed

+188
-20
lines changed

9 files changed

+188
-20
lines changed

lib/node_modules/@stdlib/_tools/scaffold/random-strided-unary/data/test/test__factory__js.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ tape( 'the function returns a function which returns a reference to the output a
447447
x1 = [ PARAM1[ 0 ] ];
448448
out = zeros( 10, 'generic' );
449449

450-
actual = random( out.length, x1, 1, out, 1 );
450+
actual = random( out.length, x1, 0, out, 1 );
451451
t.strictEqual( actual, out, 'same reference' );
452452

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

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

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

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

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

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

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

1258-
actual = random.ndarray( out.length, x1, 1, 0, out, 1, 0 );
1258+
actual = random.ndarray( out.length, x1, 0, 0, out, 1, 0 );
12591259
t.strictEqual( actual, out, 'same reference' );
12601260

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

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

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

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

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

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

13191319
x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );

lib/node_modules/@stdlib/_tools/scaffold/random-strided-unary/data/test/test__main__js.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
107107
x1 = [ PARAM1[ 0 ] ];
108108
out = zeros( 10, 'generic' );
109109

110-
actual = random( out.length, x1, 1, out, 1 );
110+
actual = random( out.length, x1, 0, out, 1 );
111111
t.strictEqual( actual, out, 'same reference' );
112112

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

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

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

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

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

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

165165
x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );

lib/node_modules/@stdlib/_tools/scaffold/random-strided-unary/data/test/test__ndarray__js.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ tape( 'the function returns a reference to the output array', function test( t )
107107
x1 = [ PARAM1[ 0 ] ];
108108
out = zeros( 10, 'generic' );
109109

110-
actual = random( out.length, x1, 1, 0, out, 1, 0 );
110+
actual = random( out.length, x1, 0, 0, out, 1, 0 );
111111
t.strictEqual( actual, out, 'same reference' );
112112

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

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

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

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

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

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

165165
x1 = toAccessorArray( [ PARAM1[ 0 ], PARAM1[ 1 ], PARAM1[ 2 ] ] );
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "chi",
3+
"pkg": "stdlib/random/strided/chi",
4+
"base_pkg": "stdlib/random/base/chi",
5+
"uniform_prng_pkg_basename": "uniform",
6+
7+
"param_1": "k",
8+
"param_1_stride": "sk",
9+
"param_1_offset": "ok",
10+
"param_1_value": "2.0",
11+
"param_1_rand_min": "2.0",
12+
"param_1_rand_max": "5.0",
13+
"param_1_desc": "degrees of freedom",
14+
"param_1_dtype": "number",
15+
16+
"from_desc": "a chi distribution",
17+
"readme_from_desc": "a [chi][@stdlib/random/base/chi] distribution",
18+
19+
"readme_heading": "Chi Random Numbers",
20+
21+
"repl_text_main_desc": "Fills a strided array with pseudorandom numbers drawn from a chi distribution.",
22+
"repl_text_ndarray_desc": "Fills a strided array with pseudorandom numbers drawn from a chi distribution using alternative indexing semantics.",
23+
"repl_text_factory_desc": "Returns a function for filling strided arrays with pseudorandom numbers drawn from a chi distribution.",
24+
25+
"repl_text_param_1_desc": "Degrees of freedom.",
26+
27+
"keywords": "chi,continuous"
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "chisquare",
3+
"pkg": "stdlib/random/strided/chisquare",
4+
"base_pkg": "stdlib/random/base/chisquare",
5+
"uniform_prng_pkg_basename": "uniform",
6+
7+
"param_1": "k",
8+
"param_1_stride": "sk",
9+
"param_1_offset": "ok",
10+
"param_1_value": "2.0",
11+
"param_1_rand_min": "2.0",
12+
"param_1_rand_max": "5.0",
13+
"param_1_desc": "degrees of freedom",
14+
"param_1_dtype": "number",
15+
16+
"from_desc": "a chi-square distribution",
17+
"readme_from_desc": "a [chi-square][@stdlib/random/base/chisquare] distribution",
18+
19+
"readme_heading": "Chi-square Random Numbers",
20+
21+
"repl_text_main_desc": "Fills a strided array with pseudorandom numbers drawn from a chi-square distribution.",
22+
"repl_text_ndarray_desc": "Fills a strided array with pseudorandom numbers drawn from a chi-square distribution using alternative indexing semantics.",
23+
"repl_text_factory_desc": "Returns a function for filling strided arrays with pseudorandom numbers drawn from a chi-square distribution.",
24+
25+
"repl_text_param_1_desc": "Degrees of freedom.",
26+
27+
"keywords": "chi2,chi-squared,chi-square,chisquare,chisquared,continuous"
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "geometric",
3+
"pkg": "stdlib/random/strided/geometric",
4+
"base_pkg": "stdlib/random/base/geometric",
5+
"uniform_prng_pkg_basename": "uniform",
6+
7+
"param_1": "p",
8+
"param_1_stride": "sp",
9+
"param_1_offset": "op",
10+
"param_1_value": "0.01",
11+
"param_1_rand_min": "0.01",
12+
"param_1_rand_max": "0.99",
13+
"param_1_desc": "success probability",
14+
"param_1_dtype": "number",
15+
16+
"from_desc": "a geometric distribution",
17+
"readme_from_desc": "a [geometric][@stdlib/random/base/geometric] distribution",
18+
19+
"readme_heading": "Geometric Random Numbers",
20+
21+
"repl_text_main_desc": "Fills a strided array with pseudorandom numbers drawn from a geometric distribution.",
22+
"repl_text_ndarray_desc": "Fills a strided array with pseudorandom numbers drawn from a geometric distribution using alternative indexing semantics.",
23+
"repl_text_factory_desc": "Returns a function for filling strided arrays with pseudorandom numbers drawn from a geometric distribution.",
24+
25+
"repl_text_param_1_desc": "Success probability.",
26+
27+
"keywords": "geometric,bernoulli,discrete"
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "poisson",
3+
"pkg": "stdlib/random/strided/poisson",
4+
"base_pkg": "stdlib/random/base/poisson",
5+
"uniform_prng_pkg_basename": "uniform",
6+
7+
"param_1": "lambda",
8+
"param_1_stride": "sl",
9+
"param_1_offset": "ol",
10+
"param_1_value": "2.0",
11+
"param_1_rand_min": "2.0",
12+
"param_1_rand_max": "5.0",
13+
"param_1_desc": "mean parameter",
14+
"param_1_dtype": "number",
15+
16+
"from_desc": "a Poisson distribution",
17+
"readme_from_desc": "a [Poisson][@stdlib/random/base/poisson] distribution",
18+
19+
"readme_heading": "Poisson Random Numbers",
20+
21+
"repl_text_main_desc": "Fills a strided array with pseudorandom numbers drawn from a Poisson distribution.",
22+
"repl_text_ndarray_desc": "Fills a strided array with pseudorandom numbers drawn from a Poisson distribution using alternative indexing semantics.",
23+
"repl_text_factory_desc": "Returns a function for filling strided arrays with pseudorandom numbers drawn from a Poisson distribution.",
24+
25+
"repl_text_param_1_desc": "Mean parameter.",
26+
27+
"keywords": "poisson,poiss,discrete"
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "rayleigh",
3+
"pkg": "stdlib/random/strided/rayleigh",
4+
"base_pkg": "stdlib/random/base/rayleigh",
5+
"uniform_prng_pkg_basename": "uniform",
6+
7+
"param_1": "sigma",
8+
"param_1_stride": "ss",
9+
"param_1_offset": "os",
10+
"param_1_value": "2.0",
11+
"param_1_rand_min": "2.0",
12+
"param_1_rand_max": "5.0",
13+
"param_1_desc": "scale parameter",
14+
"param_1_dtype": "number",
15+
16+
"from_desc": "a Rayleigh distribution",
17+
"readme_from_desc": "a [Rayleigh][@stdlib/random/base/rayleigh] distribution",
18+
19+
"readme_heading": "Rayleigh Random Numbers",
20+
21+
"repl_text_main_desc": "Fills a strided array with pseudorandom numbers drawn from a Rayleigh distribution.",
22+
"repl_text_ndarray_desc": "Fills a strided array with pseudorandom numbers drawn from a Rayleigh distribution using alternative indexing semantics.",
23+
"repl_text_factory_desc": "Returns a function for filling strided arrays with pseudorandom numbers drawn from a Rayleigh distribution.",
24+
25+
"repl_text_param_1_desc": "Scale parameter.",
26+
27+
"keywords": "rayleigh,continuous"
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"alias": "t",
3+
"pkg": "stdlib/random/strided/t",
4+
"base_pkg": "stdlib/random/base/t",
5+
"uniform_prng_pkg_basename": "uniform",
6+
7+
"param_1": "v",
8+
"param_1_stride": "sv",
9+
"param_1_offset": "ov",
10+
"param_1_value": "2.0",
11+
"param_1_rand_min": "2.0",
12+
"param_1_rand_max": "5.0",
13+
"param_1_desc": "degrees of freedom",
14+
"param_1_dtype": "number",
15+
16+
"from_desc": "a Student'\\''s t distribution",
17+
"readme_from_desc": "a [Student'\\''s t][@stdlib/random/base/t]-distribution",
18+
19+
"readme_heading": "Student'\\''s t Random Numbers",
20+
21+
"repl_text_main_desc": "Fills a strided array with pseudorandom numbers drawn from a Student'\\''s t-distribution.",
22+
"repl_text_ndarray_desc": "Fills a strided array with pseudorandom numbers drawn from a Student'\\''s t-distribution using alternative indexing semantics.",
23+
"repl_text_factory_desc": "Returns a function for filling strided arrays with pseudorandom numbers drawn from a Student'\\''s t-distribution.",
24+
25+
"repl_text_param_1_desc": "Degrees of freedom.",
26+
27+
"keywords": "normal,gaussian,t,student,continuous"
28+
}

0 commit comments

Comments
 (0)