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 @@ -71,7 +71,7 @@ function validate( opts, options ) {
if ( hasOwnProp( options, 'direction' ) ) {
opts.direction = options.direction;
if ( !isString( opts.direction ) ) {
return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'direction', opts.direction) );
return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'direction', opts.direction ) );
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function validate( opts, options ) {
if ( hasOwnProp( options, 'direction' ) ) {
opts.direction = options.direction;
if ( !isString( opts.direction ) ) {
return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'direction', opts.direction) );
return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'direction', opts.direction ) );
}
}
if ( hasOwnProp( options, 'visibility' ) ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var ndarray = require( './ndarray.js' );
* // returns 1.0
*/
function dsnansum( N, x, strideX ) {
return ndarray( N, x, strideX, stride2offset( N, strideX) );
return ndarray( N, x, strideX, stride2offset( N, strideX ) );
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ function gcusumpw( N, sum, x, strideX, offsetX, y, strideY, offsetY ) {
iy = offsetY;
if ( N <= BLOCKSIZE ) {
s = xget( xbuf, ix );
yset( ybuf, iy, sum + s);
yset( ybuf, iy, sum + s );
ix += strideX;
iy += strideY;
for ( i = 1; i < N; i++ ) {
s += xget( xbuf, ix );
yset( ybuf, iy, sum + s);
yset( ybuf, iy, sum + s );
ix += strideX;
iy += strideY;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ static void ibetaFraction2t( const double a, const double b, const double x, dou
* -----
* b3 + ...
* ```
*
* @param a function parameter
* @param b function parameter
* @param x function parameter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function blockednullary6d( fcn, arrays, views, shape, stridesX, strategyX, opts
x = arrays[ 0 ];

// Resolve the loop interchange order:
o = loopOrder( shape, stridesX);
o = loopOrder( shape, stridesX );
sh = o.sh;
sv = [ o.sx ];
for ( k = 1; k < N; k++ ) {
Expand Down
5 changes: 2 additions & 3 deletions lib/node_modules/@stdlib/ndarray/fancy/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ interface Constructor {
* @param options.readonly - specifies whether an array should be read-only (default: false)
* @throws `buffer` argument `get` and `set` properties must be functions
* @throws `shape` argument must be an array-like object containing nonnegative integers
* @throws `shape` argument length must equal the number of dimensions
* @throws `strides` argument must be an array-like object containing integers
* @throws `strides` argument length must equal the number of dimensions (except for zero-dimensional arrays; in which case, the `strides` argument length must be equal to `1`)
* @throws for zero-dimensional ndarrays, the `strides` argument must contain a single element equal to `0`
Expand Down Expand Up @@ -98,7 +97,6 @@ interface Constructor {
* @param options.readonly - specifies whether an array should be read-only (default: false)
* @throws `buffer` argument `get` and `set` properties must be functions
* @throws `shape` argument must be an array-like object containing nonnegative integers
* @throws `shape` argument length must equal the number of dimensions
* @throws `strides` argument must be an array-like object containing integers
* @throws `strides` argument length must equal the number of dimensions (except for zero-dimensional arrays; in which case, the `strides` argument length must be equal to `1`)
* @throws for zero-dimensional ndarrays, the `strides` argument must contain a single element equal to `0`
Expand Down Expand Up @@ -134,7 +132,6 @@ interface Constructor {
* @param options.readonly - specifies whether an array should be read-only (default: false)
* @throws `buffer` argument `get` and `set` properties must be functions
* @throws `shape` argument must be an array-like object containing nonnegative integers
* @throws `shape` argument length must equal the number of dimensions
* @throws `strides` argument must be an array-like object containing integers
* @throws `strides` argument length must equal the number of dimensions (except for zero-dimensional arrays; in which case, the `strides` argument length must be equal to `1`)
* @throws for zero-dimensional ndarrays, the `strides` argument must contain a single element equal to `0`
Expand All @@ -158,3 +155,5 @@ declare var ctor: Constructor;
// EXPORTS //

export = ctor;

// eslint-doctest-alias: FancyArray
1 change: 0 additions & 1 deletion lib/node_modules/@stdlib/ndarray/fancy/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ var ndarray2fancy = require( '@stdlib/ndarray/to-fancy' );
* @throws {TypeError} `buffer` argument must be an array-like object, typed-array-like, or a Buffer
* @throws {TypeError} `buffer` argument `get` and `set` properties must be functions
* @throws {TypeError} `shape` argument must be an array-like object containing nonnegative integers
* @throws {Error} `shape` argument length must equal the number of dimensions
* @throws {TypeError} `strides` argument must be an array-like object containing integers
* @throws {Error} `strides` argument length must equal the number of dimensions (except for zero-dimensional arrays; in which case, the `strides` argument length must be equal to `1`)
* @throws {Error} for zero-dimensional ndarrays, the `strides` argument must contain a single element equal to `0`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var cdf = require( '@stdlib/stats/base/dists/binomial/cdf' );
* @returns {NonNegativeInteger} `r` quantile of the specified distribution
*/
function searchLeft( x, r, n, p ) {
while ( x !== 0 && cdf( x-1, n, p) >= r ) {
while ( x !== 0 && cdf( x-1, n, p ) >= r ) {
x -=1;
}
return x;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var addon = require( './../src/addon.node' );
* // returns NaN
*/
function quantile( p, mu, c ) {
return addon( p, mu, c);
return addon( p, mu, c );
}


Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/kde2d/lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function validate( opts, options ) {
}
if ( hasOwnProp( options, 'h' ) ) {
opts.h = options.h;
if ( !isPositiveNumberArray( opts.h) ) {
if ( !isPositiveNumberArray( opts.h ) ) {
return new TypeError( format( 'invalid option. `%s` option must be an array of positive numbers. Option: `%s`.', 'h', opts.h ) );
}
if ( opts.h.length !== 2 ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/stats/pcorrtest/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function pcorrTest( x, y, options ) {
break;
case 'two-sided':
default:
pval = 2.0 * min( tCDF( stat, df), 1.0 - tCDF( stat, df ) );
pval = 2.0 * min( tCDF( stat, df ), 1.0 - tCDF( stat, df ) );
break;
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var ndarray = require( './ndarray.js' );
*/
function nanmskrange( N, x, strideX, mask, strideMask ) {
var ix = stride2offset( N, strideX );
var im = stride2offset( N, strideMask);
var im = stride2offset( N, strideMask );
return ndarray( N, x, strideX, ix, mask, strideMask, im );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
* var v = rangeBy( x.length, arraylike2object( x ), 1, 0, accessor );
* // returns 18.0
*/
function rangeBy( N, x, strideX, offsetX, clbk, thisArg) {
function rangeBy( N, x, strideX, offsetX, clbk, thisArg ) {
var xbuf;
var get;
var max;
Expand Down
Loading