Skip to content

Commit b638337

Browse files
committed
refactor: use base assertion 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 cf0a752 commit b638337

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/blas/base/dgemv/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/blas/base/dgemv/lib/dgemv.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var stride2offset = require( '@stdlib/strided/base/stride2offset' );
2424
var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
2525
var isMatrixTranspose = require( '@stdlib/blas/base/assert/is-transpose-operation' );
26+
var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
2627
var format = require( '@stdlib/string/format' );
2728
var base = require( './base.js' );
2829

@@ -102,7 +103,7 @@ function dgemv( order, trans, M, N, alpha, A, LDA, x, strideX, beta, y, strideY
102103
}
103104
ox = stride2offset( xlen, strideX );
104105
oy = stride2offset( ylen, strideY );
105-
if ( order === 'column-major' ) {
106+
if ( isColumnMajor( order ) ) {
106107
sa1 = 1;
107108
sa2 = LDA;
108109
} else { // order === 'row-major'

0 commit comments

Comments
 (0)