@stdlib/random-strided-gamma 0.0.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -18,6 +18,17 @@ limitations under the License.
18
18
 
19
19
  -->
20
20
 
21
+
22
+ <details>
23
+ <summary>
24
+ About stdlib...
25
+ </summary>
26
+ <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27
+ <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28
+ <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29
+ <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30
+ </details>
31
+
21
32
  # Gamma Random Numbers
22
33
 
23
34
  [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
@@ -219,6 +230,13 @@ logEach( 'x1[%d] = %.2f; x2[%d] = %.2f', idx, x1, idx, x2 );
219
230
 
220
231
  <section class="related">
221
232
 
233
+ * * *
234
+
235
+ ## See Also
236
+
237
+ - <span class="package-name">[`@stdlib/random-base/gamma`][@stdlib/random/base/gamma]</span><span class="delimiter">: </span><span class="description">gamma distributed pseudorandom numbers.</span>
238
+ - <span class="package-name">[`@stdlib/random-array/gamma`][@stdlib/random/array/gamma]</span><span class="delimiter">: </span><span class="description">create an array containing pseudorandom numbers drawn from a gamma distribution.</span>
239
+
222
240
  </section>
223
241
 
224
242
  <!-- /.related -->
@@ -249,7 +267,7 @@ See [LICENSE][stdlib-license].
249
267
 
250
268
  ## Copyright
251
269
 
252
- Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
270
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
253
271
 
254
272
  </section>
255
273
 
@@ -262,8 +280,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
262
280
  [npm-image]: http://img.shields.io/npm/v/@stdlib/random-strided-gamma.svg
263
281
  [npm-url]: https://npmjs.org/package/@stdlib/random-strided-gamma
264
282
 
265
- [test-image]: https://github.com/stdlib-js/random-strided-gamma/actions/workflows/test.yml/badge.svg?branch=v0.0.1
266
- [test-url]: https://github.com/stdlib-js/random-strided-gamma/actions/workflows/test.yml?query=branch:v0.0.1
283
+ [test-image]: https://github.com/stdlib-js/random-strided-gamma/actions/workflows/test.yml/badge.svg?branch=v0.2.0
284
+ [test-url]: https://github.com/stdlib-js/random-strided-gamma/actions/workflows/test.yml?query=branch:v0.2.0
267
285
 
268
286
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-strided-gamma/main.svg
269
287
  [coverage-url]: https://codecov.io/github/stdlib-js/random-strided-gamma?branch=main
@@ -286,8 +304,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
286
304
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
287
305
 
288
306
  [deno-url]: https://github.com/stdlib-js/random-strided-gamma/tree/deno
307
+ [deno-readme]: https://github.com/stdlib-js/random-strided-gamma/blob/deno/README.md
289
308
  [umd-url]: https://github.com/stdlib-js/random-strided-gamma/tree/umd
309
+ [umd-readme]: https://github.com/stdlib-js/random-strided-gamma/blob/umd/README.md
290
310
  [esm-url]: https://github.com/stdlib-js/random-strided-gamma/tree/esm
311
+ [esm-readme]: https://github.com/stdlib-js/random-strided-gamma/blob/esm/README.md
291
312
  [branches-url]: https://github.com/stdlib-js/random-strided-gamma/blob/main/branches.md
292
313
 
293
314
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/random-strided-gamma/main/LICENSE
@@ -298,6 +319,12 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
298
319
 
299
320
  [@stdlib/array/uint32]: https://www.npmjs.com/package/@stdlib/array-uint32
300
321
 
322
+ <!-- <related-links> -->
323
+
324
+ [@stdlib/random/array/gamma]: https://www.npmjs.com/package/@stdlib/random-array-gamma
325
+
326
+ <!-- </related-links> -->
327
+
301
328
  </section>
302
329
 
303
330
  <!-- /.links -->
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import gamma from '../docs/types/index';
3
+ export = gamma;
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";var l=function(n,e){return function(){return e||n((e={exports:{}}).exports,e),e.exports}};var g=l(function(I,m){
2
+ var d=require('@stdlib/array-base-assert-is-accessor-array/dist'),q=require('@stdlib/random-base-gamma/dist');function R(n,e,u,i,c,a,f,t){var r,v,s;if(r={arity:0,fcn:null},f){if(e===0&&c===0)return d(n)?v=n.get(u):v=n[u],d(i)?s=i.get(a):s=i[a],r.fcn=q.factory(v,s,t),r;r.fcn=q.factory(t)}else r.fcn=q;return r.arity+=2,r}m.exports=R
3
+ });var A=l(function(J,p){
4
+ var h=require('@stdlib/strided-base-nullary/dist'),j=require('@stdlib/strided-base-binary/dist'),w=g();function z(n,e,u,i,c,a,f,t){var r=w(e,u,0,i,c,0,arguments.length>7,t);return r.arity===0?(h([a],[n],[f],r.fcn),a):(j([e,i,a],[n],[u,c,f],r.fcn),a)}p.exports=z
5
+ });var x=l(function(K,k){
6
+ var B=require('@stdlib/strided-base-nullary/dist').ndarray,C=require('@stdlib/strided-base-binary/dist').ndarray,D=g();function E(n,e,u,i,c,a,f,t,r,v,s){var y=D(e,u,i,c,a,f,arguments.length>10,s);return y.arity===0?(B([t],[n],[r],[v],y.fcn),t):(C([e,c,t],[n],[u,a,r],[i,f,v],y.fcn),t)}k.exports=E
7
+ });var F=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),O=A(),G=x();F(O,"ndarray",G);module.exports=O;
8
+ /** @license Apache-2.0 */
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/prng.js", "../lib/main.js", "../lib/ndarray.js", "../lib/index.js"],
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar isAccessorArray = require( '@stdlib/array-base-assert-is-accessor-array' );\nvar random = require( '@stdlib/random-base-gamma' );\n\n\n// MAIN //\n\n/**\n* Returns a function for generating pseudorandom numbers.\n*\n* ## Notes\n*\n* - The returned object has the following properties:\n*\n* - **arity**: number of function parameters.\n* - **fcn**: function for generating pseudorandom numbers.\n*\n* @private\n* @param {Collection} x - first parameter\n* @param {integer} sx - `x` stride length\n* @param {NonNegativeInteger} ox - starting `x` index\n* @param {Collection} y - second parameter\n* @param {integer} sy - `y` stride length\n* @param {NonNegativeInteger} oy - starting `y` index\n* @param {boolean} hasOptions - boolean indicating whether to process an options argument\n* @param {(void|Options)} options - function options\n* @returns {Object} function object\n*/\nfunction clbk( x, sx, ox, y, sy, oy, hasOptions, options ) {\n\tvar out;\n\tvar v1;\n\tvar v2;\n\n\tout = {\n\t\t'arity': 0,\n\t\t'fcn': null\n\t};\n\tif ( hasOptions ) {\n\t\tif ( sx === 0 && sy === 0 ) {\n\t\t\tif ( isAccessorArray( x ) ) {\n\t\t\t\tv1 = x.get( ox );\n\t\t\t} else {\n\t\t\t\tv1 = x[ ox ];\n\t\t\t}\n\t\t\tif ( isAccessorArray( y ) ) {\n\t\t\t\tv2 = y.get( oy );\n\t\t\t} else {\n\t\t\t\tv2 = y[ oy ];\n\t\t\t}\n\t\t\tout.fcn = random.factory( v1, v2, options );\n\t\t\treturn out;\n\t\t}\n\t\tout.fcn = random.factory( options );\n\t} else {\n\t\tout.fcn = random;\n\t}\n\tout.arity += 2;\n\treturn out;\n}\n\n\n// EXPORTS //\n\nmodule.exports = clbk;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar nullary = require( '@stdlib/strided-base-nullary' );\nvar binary = require( '@stdlib/strided-base-binary' );\nvar prng = require( './prng.js' );\n\n\n// MAIN //\n\n/**\n* Fills a strided array with pseudorandom numbers drawn from a gamma distribution.\n*\n* @param {NonNegativeInteger} N - number of indexed elements\n* @param {Collection} alpha - shape parameter\n* @param {integer} sa - `alpha` stride length\n* @param {Collection} beta - rate parameter\n* @param {integer} sb - `beta` stride length\n* @param {Collection} out - output array\n* @param {integer} so - `out` stride length\n* @param {Options} [options] - function options\n* @param {PRNG} [options.prng] - pseudorandom number generator which generates uniformly distributed pseudorandom numbers\n* @param {PRNGSeedMT19937} [options.seed] - pseudorandom number generator seed\n* @param {PRNGStateMT19937} [options.state] - pseudorandom number generator state\n* @param {boolean} [options.copy=true] - boolean indicating whether to copy a provided pseudorandom number generator state\n* @throws {Error} must provide valid distribution parameters\n* @throws {Error} must provide valid options\n* @throws {Error} must provide a valid state\n* @returns {Collection} output array\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* // Create an array:\n* var out = new Float64Array( 10 );\n*\n* // Fill the array with pseudorandom numbers:\n* gamma( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );\n*/\nfunction gamma( N, alpha, sa, beta, sb, out, so, options ) {\n\tvar rand = prng( alpha, sa, 0, beta, sb, 0, arguments.length > 7, options );\n\tif ( rand.arity === 0 ) {\n\t\tnullary( [ out ], [ N ], [ so ], rand.fcn );\n\t\treturn out;\n\t}\n\tbinary( [ alpha, beta, out ], [ N ], [ sa, sb, so ], rand.fcn );\n\treturn out;\n}\n\n\n// EXPORTS //\n\nmodule.exports = gamma;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar nullary = require( '@stdlib/strided-base-nullary' ).ndarray;\nvar binary = require( '@stdlib/strided-base-binary' ).ndarray;\nvar prng = require( './prng.js' );\n\n\n// MAIN //\n\n/**\n* Fills a strided array with pseudorandom numbers drawn from a gamma distribution.\n*\n* @param {NonNegativeInteger} N - number of indexed elements\n* @param {Collection} alpha - shape parameter\n* @param {integer} sa - `alpha` stride length\n* @param {NonNegativeInteger} oa - starting `alpha` index\n* @param {Collection} beta - rate parameter\n* @param {integer} sb - `beta` stride length\n* @param {NonNegativeInteger} ob - starting `beta` index\n* @param {Collection} out - output array\n* @param {integer} so - `out` stride length\n* @param {NonNegativeInteger} oo - starting `out` index\n* @param {Options} [options] - function options\n* @param {PRNG} [options.prng] - pseudorandom number generator which generates uniformly distributed pseudorandom numbers\n* @param {PRNGSeedMT19937} [options.seed] - pseudorandom number generator seed\n* @param {PRNGStateMT19937} [options.state] - pseudorandom number generator state\n* @param {boolean} [options.copy=true] - boolean indicating whether to copy a provided pseudorandom number generator state\n* @throws {Error} must provide valid distribution parameters\n* @throws {Error} must provide valid options\n* @throws {Error} must provide a valid state\n* @returns {Collection} output array\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n*\n* // Create an array:\n* var out = new Float64Array( 10 );\n*\n* // Fill the array with pseudorandom numbers:\n* gamma( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );\n*/\nfunction gamma( N, alpha, sa, oa, beta, sb, ob, out, so, oo, options ) { // eslint-disable-line max-params\n\tvar rand = prng( alpha, sa, oa, beta, sb, ob, arguments.length > 10, options ); // eslint-disable-line max-len\n\tif ( rand.arity === 0 ) {\n\t\tnullary( [ out ], [ N ], [ so ], [ oo ], rand.fcn );\n\t\treturn out;\n\t}\n\tbinary( [ alpha, beta, out ], [ N ], [ sa, sb, so ], [ oa, ob, oo ], rand.fcn ); // eslint-disable-line max-len\n\treturn out;\n}\n\n\n// EXPORTS //\n\nmodule.exports = gamma;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2023 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Fill a strided array with pseudorandom numbers drawn from a gamma distribution.\n*\n* @module @stdlib/random-strided-gamma\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var gamma = require( '@stdlib/random-strided-gamma' );\n*\n* // Create an array:\n* var out = new Float64Array( 10 );\n*\n* // Fill the array with pseudorandom numbers:\n* gamma( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );\n*\n* @example\n* var Float64Array = require( '@stdlib/array-float64' );\n* var gamma = require( '@stdlib/random-strided-gamma' );\n*\n* // Create an array:\n* var out = new Float64Array( 10 );\n*\n* // Fill the array with pseudorandom numbers:\n* gamma.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar main = require( './main.js' );\nvar ndarray = require( './ndarray.js' );\n\n\n// MAIN //\n\nsetReadOnly( main, 'ndarray', ndarray );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n\n// exports: { \"ndarray\": \"main.ndarray\" }\n"],
5
+ "mappings": "uGAAA,IAAAA,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAkB,QAAS,6CAA8C,EACzEC,EAAS,QAAS,2BAA4B,EA0BlD,SAASC,EAAMC,EAAGC,EAAIC,EAAIC,EAAGC,EAAIC,EAAIC,EAAYC,EAAU,CAC1D,IAAIC,EACAC,EACAC,EAMJ,GAJAF,EAAM,CACL,MAAS,EACT,IAAO,IACR,EACKF,EAAa,CACjB,GAAKL,IAAO,GAAKG,IAAO,EACvB,OAAKP,EAAiBG,CAAE,EACvBS,EAAKT,EAAE,IAAKE,CAAG,EAEfO,EAAKT,EAAGE,CAAG,EAEPL,EAAiBM,CAAE,EACvBO,EAAKP,EAAE,IAAKE,CAAG,EAEfK,EAAKP,EAAGE,CAAG,EAEZG,EAAI,IAAMV,EAAO,QAASW,EAAIC,EAAIH,CAAQ,EACnCC,EAERA,EAAI,IAAMV,EAAO,QAASS,CAAQ,CACnC,MACCC,EAAI,IAAMV,EAEX,OAAAU,EAAI,OAAS,EACNA,CACR,CAKAZ,EAAO,QAAUG,ICpFjB,IAAAY,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAU,QAAS,8BAA+B,EAClDC,EAAS,QAAS,6BAA8B,EAChDC,EAAO,IAkCX,SAASC,EAAOC,EAAGC,EAAOC,EAAIC,EAAMC,EAAIC,EAAKC,EAAIC,EAAU,CAC1D,IAAIC,EAAOV,EAAMG,EAAOC,EAAI,EAAGC,EAAMC,EAAI,EAAG,UAAU,OAAS,EAAGG,CAAQ,EAC1E,OAAKC,EAAK,QAAU,GACnBZ,EAAS,CAAES,CAAI,EAAG,CAAEL,CAAE,EAAG,CAAEM,CAAG,EAAGE,EAAK,GAAI,EACnCH,IAERR,EAAQ,CAAEI,EAAOE,EAAME,CAAI,EAAG,CAAEL,CAAE,EAAG,CAAEE,EAAIE,EAAIE,CAAG,EAAGE,EAAK,GAAI,EACvDH,EACR,CAKAV,EAAO,QAAUI,ICvEjB,IAAAU,EAAAC,EAAA,SAAAC,EAAAC,EAAA,cAsBA,IAAIC,EAAU,QAAS,8BAA+B,EAAE,QACpDC,EAAS,QAAS,6BAA8B,EAAE,QAClDC,EAAO,IAqCX,SAASC,EAAOC,EAAGC,EAAOC,EAAIC,EAAIC,EAAMC,EAAIC,EAAIC,EAAKC,EAAIC,EAAIC,EAAU,CACtE,IAAIC,EAAOb,EAAMG,EAAOC,EAAIC,EAAIC,EAAMC,EAAIC,EAAI,UAAU,OAAS,GAAII,CAAQ,EAC7E,OAAKC,EAAK,QAAU,GACnBf,EAAS,CAAEW,CAAI,EAAG,CAAEP,CAAE,EAAG,CAAEQ,CAAG,EAAG,CAAEC,CAAG,EAAGE,EAAK,GAAI,EAC3CJ,IAERV,EAAQ,CAAEI,EAAOG,EAAMG,CAAI,EAAG,CAAEP,CAAE,EAAG,CAAEE,EAAIG,EAAIG,CAAG,EAAG,CAAEL,EAAIG,EAAIG,CAAG,EAAGE,EAAK,GAAI,EACvEJ,EACR,CAKAZ,EAAO,QAAUI,IC1BjB,IAAIa,EAAc,QAAS,uDAAwD,EAC/EC,EAAO,IACPC,EAAU,IAKdF,EAAaC,EAAM,UAAWC,CAAQ,EAKtC,OAAO,QAAUD",
6
+ "names": ["require_prng", "__commonJSMin", "exports", "module", "isAccessorArray", "random", "clbk", "x", "sx", "ox", "y", "sy", "oy", "hasOptions", "options", "out", "v1", "v2", "require_main", "__commonJSMin", "exports", "module", "nullary", "binary", "prng", "gamma", "N", "alpha", "sa", "beta", "sb", "out", "so", "options", "rand", "require_ndarray", "__commonJSMin", "exports", "module", "nullary", "binary", "prng", "gamma", "N", "alpha", "sa", "oa", "beta", "sb", "ob", "out", "so", "oo", "options", "rand", "setReadOnly", "main", "ndarray"]
7
+ }
@@ -21,7 +21,7 @@
21
21
  /// <reference types="@stdlib/types"/>
22
22
 
23
23
  import * as random from '@stdlib/types/random';
24
- import { Collection } from '@stdlib/types/object';
24
+ import { Collection } from '@stdlib/types/array';
25
25
 
26
26
  /**
27
27
  * Interface defining function options.
@@ -69,7 +69,7 @@ interface Routine {
69
69
  * @returns output array
70
70
  *
71
71
  * @example
72
- * var Float64Array = require( `@stdlib/array/float64` );
72
+ * var Float64Array = require( '@stdlib/array-float64' );
73
73
  *
74
74
  * // Create an array:
75
75
  * var out = new Float64Array( 10 );
@@ -77,7 +77,7 @@ interface Routine {
77
77
  * // Fill the array with pseudorandom numbers:
78
78
  * gamma( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
79
79
  */
80
- <T = any>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80
+ <T = unknown>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
81
81
 
82
82
  /**
83
83
  * Fills a strided array with pseudorandom numbers drawn from a gamma distribution using alternative indexing semantics.
@@ -99,7 +99,7 @@ interface Routine {
99
99
  * @returns output array
100
100
  *
101
101
  * @example
102
- * var Float64Array = require( `@stdlib/array/float64` );
102
+ * var Float64Array = require( '@stdlib/array-float64' );
103
103
  *
104
104
  * // Create an array:
105
105
  * var out = new Float64Array( 10 );
@@ -107,7 +107,7 @@ interface Routine {
107
107
  * // Fill the array with pseudorandom numbers:
108
108
  * gamma.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109
109
  */
110
- ndarray<T = any>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110
+ ndarray<T = unknown>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111
111
  }
112
112
 
113
113
  /**
@@ -127,7 +127,7 @@ interface Routine {
127
127
  * @returns output array
128
128
  *
129
129
  * @example
130
- * var Float64Array = require( `@stdlib/array/float64` );
130
+ * var Float64Array = require( '@stdlib/array-float64' );
131
131
  *
132
132
  * // Create an array:
133
133
  * var out = new Float64Array( 10 );
@@ -136,7 +136,7 @@ interface Routine {
136
136
  * gamma( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
137
137
  *
138
138
  * @example
139
- * var Float64Array = require( `@stdlib/array/float64` );
139
+ * var Float64Array = require( '@stdlib/array-float64' );
140
140
  *
141
141
  * // Create an array:
142
142
  * var out = new Float64Array( 10 );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/random-strided-gamma",
3
- "version": "0.0.1",
3
+ "version": "0.2.0",
4
4
  "description": "Fill a strided array with pseudorandom numbers drawn from a gamma distribution.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -37,30 +37,31 @@
37
37
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@stdlib/array-base-assert-is-accessor-array": "^0.0.1",
41
- "@stdlib/random-base-gamma": "^0.0.6",
42
- "@stdlib/strided-base-binary": "^0.0.8",
43
- "@stdlib/strided-base-nullary": "^0.0.7",
44
- "@stdlib/types": "^0.0.14",
45
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.7"
40
+ "@stdlib/array-base-assert-is-accessor-array": "^0.2.0",
41
+ "@stdlib/random-base-gamma": "^0.1.0",
42
+ "@stdlib/strided-base-binary": "^0.2.0",
43
+ "@stdlib/strided-base-nullary": "^0.2.0",
44
+ "@stdlib/types": "^0.3.1",
45
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@stdlib/array-base-linspace": "^0.0.3",
49
- "@stdlib/array-base-to-accessor-array": "^0.0.1",
50
- "@stdlib/array-base-zero-to": "^0.0.6",
51
- "@stdlib/array-filled": "^0.0.6",
52
- "@stdlib/array-filled-by": "^0.0.2",
53
- "@stdlib/array-float64": "^0.0.6",
54
- "@stdlib/array-zeros": "^0.0.1",
55
- "@stdlib/bench": "^0.0.12",
56
- "@stdlib/console-log-each": "^0.0.2",
57
- "@stdlib/math-base-assert-is-nan": "^0.0.8",
58
- "@stdlib/math-base-assert-is-nanf": "^0.0.8",
59
- "@stdlib/math-base-special-pow": "^0.0.7",
60
- "@stdlib/random-base-uniform": "^0.0.6",
48
+ "@stdlib/array-base-linspace": "^0.2.0",
49
+ "@stdlib/array-base-to-accessor-array": "^0.1.0",
50
+ "@stdlib/array-base-zero-to": "^0.1.0",
51
+ "@stdlib/array-filled": "^0.1.0",
52
+ "@stdlib/array-filled-by": "^0.1.0",
53
+ "@stdlib/array-float64": "^0.2.0",
54
+ "@stdlib/array-zeros": "^0.1.0",
55
+ "@stdlib/console-log-each": "^0.1.0",
56
+ "@stdlib/math-base-assert-is-nan": "^0.2.0",
57
+ "@stdlib/math-base-assert-is-nanf": "^0.2.0",
58
+ "@stdlib/math-base-special-pow": "^0.2.0",
59
+ "@stdlib/random-base-uniform": "^0.1.0",
61
60
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
62
61
  "istanbul": "^0.4.1",
63
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
62
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
63
+ "@stdlib/bench-harness": "^0.2.0",
64
+ "@stdlib/bench": "^0.3.1"
64
65
  },
65
66
  "engines": {
66
67
  "node": ">=0.10.0",