Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
[ 5.0, 5.0, 1.0, 5.0 ]

// Using `N` and stride parameters:
> var x = [ 0.0, 0.0, 1.0, 0.0 ];
> x = [ 0.0, 0.0, 1.0, 0.0 ];
> {{alias}}( 2, 0.5, 5.0, x, 2 )
[ 5.0, 0.0, 1.0, 0.0 ]

Expand Down Expand Up @@ -95,7 +95,7 @@
[ 5.0, 5.0, 1.0, 5.0 ]

// Using an index offset:
> var x = [ 0.0, 0.0, 1.0, 0.0 ];
> x = [ 0.0, 0.0, 1.0, 0.0 ];
> {{alias}}.ndarray( 2, 0.5, 5.0, x, 2, 1 )
[ 0.0, 5.0, 1.0, 5.0 ]

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/fft/base/fftpack/costi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ var nf = workspace[ (3*N)-1 ];

console.log( ' number of factors: %d', nf );
idx = zeroTo( nf, 'generic' );
logEach( ' factor[ %d ]: %d', idx, workspace.slice( (3*N)+2, (3*N)+2+nf ) );
logEach( ' factor[ %d ]: %d', idx, workspace.slice( 3*N, (3*N)+nf ) );
```

</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ var nf = workspace[ (3*N)-1 ];

console.log( ' number of factors: %d', nf );
idx = zeroTo( nf, 'generic' );
logEach( ' factor[ %d ]: %d', idx, workspace.slice( (3*N)+2, (3*N)+2+nf ) );
logEach( ' factor[ %d ]: %d', idx, workspace.slice( 3*N, (3*N)+nf ) );
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ tape( 'the function correctly handles stride and offset parameters', function te
t.strictEqual( workspace[ offset + ( ( (3*N)-2 ) * stride ) ], N-1, 'returns expected value' );

nf = workspace[ offset + ( ( (3*N)-1 ) * stride ) ];
t.strictEqual( nf, 2, 'returns expected value2' );
t.strictEqual( nf, 2, 'returns expected value' );
t.strictEqual( workspace[ offset + ( ( 3*N ) * stride ) ], 2, 'returns expected value' );
t.strictEqual( workspace[ offset + ( ( (3*N)+1 ) * stride ) ], 4, 'returns expected value' );

Expand Down
22 changes: 11 additions & 11 deletions lib/node_modules/@stdlib/number/uint64/base/get-high-word/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ var getHighWord = require( '@stdlib/number/uint64/base/get-high-word' );

#### getHighWord( x )

Returns an unsigned 32-bit `integer` corresponding to the high 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor].
Returns an unsigned 32-bit integer corresponding to the high 32-bit word of a [64-bit unsigned integer][@stdlib/number/uint64/ctor].

```javascript
var Uint64 = require( '@stdlib/number/uint64/ctor' );

var a = new Uint64( 4294967296 );
var w = getHighWord( a );
var x = new Uint64( 4294967296 );
var w = getHighWord( x );
// returns 1
```

Expand All @@ -56,20 +56,20 @@ var w = getHighWord( a );
var Uint64 = require( '@stdlib/number/uint64/ctor' );
var getHighWord = require( '@stdlib/number/uint64/base/get-high-word' );

var a = new Uint64( 4294967296 );
console.log( getHighWord( a ) );
var x = new Uint64( 4294967296 );
console.log( getHighWord( x ) );
// => 1

a = new Uint64( 0xffffffff );
console.log( getHighWord( a ) );
x = new Uint64( 0xffffffff );
console.log( getHighWord( x ) );
// => 0

a = new Uint64( 0x123400005678 );
console.log( getHighWord( a ) );
x = new Uint64( 0x123400005678 );
console.log( getHighWord( x ) );
// => 4660

a = new Uint64.of( 1234, 5678 );
console.log( getHighWord( a ) );
x = Uint64.of( 1234, 5678 );
console.log( getHighWord( x ) );
// => 1234
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

Examples
--------
> var a = new {{alias:@stdlib/number/uint64/ctor}}( 4294967296 )
> var x = new {{alias:@stdlib/number/uint64/ctor}}( 4294967296 )
<Uint64>[ 4294967296n ]
> var w = {{alias}}( a )
> var w = {{alias}}( x )
1

See Also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
var Uint64 = require( '@stdlib/number/uint64/ctor' );
var getHighWord = require( './../lib' );

var a = new Uint64( 4294967296 );
console.log( getHighWord( a ) );
var x = new Uint64( 4294967296 );
console.log( getHighWord( x ) );
// => 1

a = new Uint64( 0xffffffff );
console.log( getHighWord( a ) );
x = new Uint64( 0xffffffff );
console.log( getHighWord( x ) );
// => 0

a = new Uint64( 0x123400005678 );
console.log( getHighWord( a ) );
x = new Uint64( 0x123400005678 );
console.log( getHighWord( x ) );
// => 4660

a = new Uint64.of( 1234, 5678 );
console.log( getHighWord( a ) );
x = Uint64.of( 1234, 5678 );
console.log( getHighWord( x ) );
// => 1234
6 changes: 3 additions & 3 deletions lib/node_modules/@stdlib/random/betaprime/docs/repl.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{{alias}}( shape, alpha, beta[, options] )
Returns an ndarray containing pseudorandom numbers drawn from a betaprime
Returns an ndarray containing pseudorandom numbers drawn from a beta prime
distribution.

Parameters
Expand Down Expand Up @@ -61,7 +61,7 @@


{{alias}}.assign( alpha, beta, out )
Fills an ndarray with pseudorandom numbers drawn from a betaprime
Fills an ndarray with pseudorandom numbers drawn from a beta prime
distribution.

Parameters
Expand Down Expand Up @@ -93,7 +93,7 @@

{{alias}}.factory( [options] )
Returns a function for generating pseudorandom numbers drawn from a
betaprime distribution.
beta prime distribution.

The returned function has the same signature and accepts the same options as
`{{alias}}` above.
Expand Down
16 changes: 8 additions & 8 deletions lib/node_modules/@stdlib/random/betaprime/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ interface PRNG {
}

/**
* Interface for generating pseudorandom numbers drawn from a betaprime distribution.
* Interface for generating pseudorandom numbers drawn from a beta prime distribution.
*/
interface RandomFunction extends PRNG {
/**
* Returns an ndarray containing pseudorandom numbers drawn from a betaprime distribution.
* Returns an ndarray containing pseudorandom numbers drawn from a beta prime distribution.
*
* @param shape - output shape
* @param alpha - first shape parameter
Expand All @@ -135,7 +135,7 @@ interface RandomFunction extends PRNG {
<T extends typedndarray<number>, U extends typedndarray<number>>( shape: Shape, alpha: number | T, beta: number | U, options?: Options ): RandomArray;

/**
* Fills an ndarray with pseudorandom numbers drawn from a betaprime distribution.
* Fills an ndarray with pseudorandom numbers drawn from a beta prime distribution.
*
* @param alpha - first shape parameter
* @param beta - second shape parameter
Expand All @@ -147,11 +147,11 @@ interface RandomFunction extends PRNG {
}

/**
* Interface for generating pseudorandom numbers drawn from a betaprime distribution.
* Interface for generating pseudorandom numbers drawn from a beta prime distribution.
*/
interface Random extends PRNG {
/**
* Returns an ndarray containing pseudorandom numbers drawn from a betaprime distribution.
* Returns an ndarray containing pseudorandom numbers drawn from a beta prime distribution.
*
* @param shape - output shape
* @param alpha - first shape parameter
Expand All @@ -167,7 +167,7 @@ interface Random extends PRNG {
<T extends typedndarray<number>, U extends typedndarray<number>>( shape: Shape, alpha: number | T, beta: number | U, options?: Options ): RandomArray;

/**
* Fills an ndarray with pseudorandom numbers drawn from a betaprime distribution.
* Fills an ndarray with pseudorandom numbers drawn from a beta prime distribution.
*
* @param alpha - first shape parameter
* @param beta - second shape parameter
Expand All @@ -190,7 +190,7 @@ interface Random extends PRNG {
assign<T extends typedndarray<number>, U extends typedndarray<number>, V extends typedndarray<number>>( alpha: number | T, beta: number | U, out: V ): V;

/**
* Returns a function for creating ndarrays containing pseudorandom numbers drawn from a betaprime distribution.
* Returns a function for creating ndarrays containing pseudorandom numbers drawn from a beta prime distribution.
*
* @param options - function options
* @throws must provide a valid state
Expand All @@ -213,7 +213,7 @@ interface Random extends PRNG {
}

/**
* Generates pseudorandom numbers drawn from a betaprime distribution.
* Generates pseudorandom numbers drawn from a beta prime distribution.
*
* @param shape - output shape
* @param alpha - first shape parameter
Expand Down