Skip to content

Commit 5dde2ff

Browse files
committed
refactor: use extended BLAS utility
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent e89922e commit 5dde2ff

File tree

18 files changed

+22
-986
lines changed

18 files changed

+22
-986
lines changed

lib/node_modules/@stdlib/ndarray/base/binary-reduce-strided1d-dispatch/lib/index_of_types.js

Lines changed: 0 additions & 108 deletions
This file was deleted.

lib/node_modules/@stdlib/ndarray/base/binary-reduce-strided1d-dispatch/lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ var join = require( '@stdlib/array/base/join' );
5353
var copy = require( '@stdlib/array/base/copy' );
5454
var insertAt = require( '@stdlib/array/base/insert-at' );
5555
var everyBy = require( '@stdlib/array/base/every-by' );
56+
var gindexOfRow = require( '@stdlib/blas/ext/base/gindex-of-row' ).ndarray;
5657
var objectAssign = require( '@stdlib/object/assign' );
5758
var format = require( '@stdlib/string/format' );
5859
var defaults = require( '@stdlib/ndarray/defaults' );
5960
var DEFAULTS = require( './defaults.json' );
6061
var validate = require( './validate.js' );
61-
var indexOfTypes = require( './index_of_types.js' );
6262

6363

6464
// VARIABLES //
@@ -353,7 +353,7 @@ setReadOnly( BinaryStrided1dDispatch.prototype, 'apply', function apply( x, y )
353353
ydt = dt;
354354
}
355355
// Resolve the lower-level strided function satisfying the input ndarray data types:
356-
i = indexOfTypes( this._table.fcns.length, 2, this._table.types, 2, 1, 0, dtypes2enums( [ xdt, ydt ] ), 1, 0 ); // eslint-disable-line max-len
356+
i = gindexOfRow( this._table.fcns.length, 2, this._table.types, 2, 1, 0, dtypes2enums( [ xdt, ydt ] ), 1, 0 ); // eslint-disable-line max-len
357357
if ( i >= 0 ) {
358358
f = this._table.fcns[ i ];
359359
} else {
@@ -541,7 +541,7 @@ setReadOnly( BinaryStrided1dDispatch.prototype, 'assign', function assign( x, y
541541
ydt = dt;
542542
}
543543
// Resolve the lower-level strided function satisfying the input ndarray data type:
544-
i = indexOfTypes( this._table.fcns.length, 2, this._table.types, 2, 1, 0, dtypes2enums( [ xdt, ydt ] ), 1, 0 ); // eslint-disable-line max-len
544+
i = gindexOfRow( this._table.fcns.length, 2, this._table.types, 2, 1, 0, dtypes2enums( [ xdt, ydt ] ), 1, 0 ); // eslint-disable-line max-len
545545
if ( i >= 0 ) {
546546
f = this._table.fcns[ i ];
547547
} else {

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/lib/index_of_types.js

Lines changed: 0 additions & 108 deletions
This file was deleted.

lib/node_modules/@stdlib/ndarray/base/nullary-strided1d-dispatch/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ var zeroTo = require( '@stdlib/array/base/zero-to' );
4141
var join = require( '@stdlib/array/base/join' );
4242
var copy = require( '@stdlib/array/base/copy' );
4343
var everyBy = require( '@stdlib/array/base/every-by' );
44+
var gindexOfRow = require( '@stdlib/blas/ext/base/gindex-of-row' ).ndarray;
4445
var objectAssign = require( '@stdlib/object/assign' );
4546
var format = require( '@stdlib/string/format' );
4647
var defaults = require( './defaults.json' );
4748
var validate = require( './validate.js' );
48-
var indexOfTypes = require( './index_of_types.js' );
4949

5050

5151
// MAIN //
@@ -270,7 +270,7 @@ setReadOnly( NullaryStrided1dDispatch.prototype, 'assign', function assign( out
270270
}
271271
// Resolve the lower-level strided function satisfying the output ndarray data type:
272272
dtypes = [ resolveEnum( odt ) ];
273-
i = indexOfTypes( this._table.fcns.length, 1, this._table.types, 1, 1, 0, dtypes, 1, 0 ); // eslint-disable-line max-len
273+
i = gindexOfRow( this._table.fcns.length, 1, this._table.types, 1, 1, 0, dtypes, 1, 0 ); // eslint-disable-line max-len
274274
if ( i >= 0 ) {
275275
f = this._table.fcns[ i ];
276276
} else {

lib/node_modules/@stdlib/ndarray/base/unary-reduce-strided1d-dispatch-by/lib/index_of_types.js

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)