Skip to content
Merged
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 @@ -44,7 +44,7 @@
var ndims = require( '@stdlib/ndarray/ndims' );
var getDType = require( '@stdlib/ndarray/base/dtype' );
var getOrder = require( '@stdlib/ndarray/base/order' );
var assign = require( '@stdlib/ndarray/base/assign' );
var ndarrayAssign = require( '@stdlib/ndarray/base/assign' );
var baseEmpty = require( '@stdlib/ndarray/base/empty' );
var empty = require( '@stdlib/ndarray/empty' );
var indicesComplement = require( '@stdlib/array/base/indices-complement' );
Expand Down Expand Up @@ -125,7 +125,7 @@
throw new TypeError( format( 'invalid argument. First argument must be an object having a "types" property whose associated value is an array-like object.' ) );
}
if ( hasProp( table, 'fcns' ) && !isFunctionArray( table.fcns ) && !isEmptyCollection( table.fcns ) ) {
throw new TypeError( format( 'invalid argument. First argument must be an object having a "fcns" property whose associated value is an array-like object containing functions.' ) );

Check warning on line 128 in lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d-dispatch/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "fcns"
}
if ( !isCollection( idtypes ) ) {
throw new TypeError( format( 'invalid argument. Second argument must be an array-like object. Value: `%s`.', idtypes ) );
Expand Down Expand Up @@ -294,9 +294,9 @@
// Determine whether we need to cast the input ndarray...
dt = unaryInputCastingDataType( xdt, ydt, this._policies.casting );
if ( xdt !== dt ) {
// TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility

Check warning on line 297 in lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d-dispatch/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: replace the following logic with a...'
tmp = baseEmpty( dt, shx, getOrder( x ) );
assign( [ x, tmp ] );
ndarrayAssign( [ x, tmp ] );
args[ 0 ] = tmp;
xdt = dt;
}
Expand Down Expand Up @@ -445,9 +445,9 @@
// Determine whether we need to cast the input ndarray...
dt = unaryInputCastingDataType( xdt, getDType( y ), this._policies.casting ); // eslint-disable-line max-len
if ( xdt !== dt ) {
// TODO: replace the following logic with a call to `ndarray/base/(?maybe-)(cast|convert|copy)` or similar utility

Check warning on line 448 in lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d-dispatch/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: replace the following logic with a...'
tmp = baseEmpty( dt, getShape( x ), getOrder( x ) );
assign( [ x, tmp ] );
ndarrayAssign( [ x, tmp ] );
args[ 0 ] = tmp;
xdt = dt;
}
Expand Down