Skip to content

Commit 26695c2

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 d4d6c43 commit 26695c2

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/lapack/base/zlaset/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/lapack/base/zlaset/lib/zlaset.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
24+
var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
2425
var format = require( '@stdlib/string/format' );
2526
var base = require( './base.js' );
2627

@@ -168,7 +169,7 @@ function zlaset( order, uplo, M, N, alpha, beta, A, LDA ) {
168169
if ( !isLayout( order ) ) {
169170
throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );
170171
}
171-
if ( order === 'column-major' ) {
172+
if ( isColumnMajor( order ) ) {
172173
sa1 = 1;
173174
sa2 = LDA;
174175
} else { // order === 'row-major'

0 commit comments

Comments
 (0)