Skip to content

Commit ed487e8

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 71fcdf5 commit ed487e8

File tree

1 file changed

+8
-2
lines changed
  • lib/node_modules/@stdlib/blas/base/dspr/lib

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818

1919
'use strict';
2020

21+
// MODULES //
22+
23+
var isRowMajor = require( '@stdlib/ndarray/base/assert/is-row-major-string' );
24+
var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
25+
26+
2127
// MAIN //
2228

2329
/**
@@ -58,8 +64,8 @@ function dspr( order, uplo, N, alpha, x, strideX, offsetX, AP, strideAP, offsetA
5864
ox = offsetX;
5965
kk = offsetAP;
6066
if (
61-
( order === 'column-major' && uplo === 'upper' ) ||
62-
( order === 'row-major' && uplo === 'lower' )
67+
( isColumnMajor( order ) && uplo === 'upper' ) ||
68+
( isRowMajor( order ) && uplo === 'lower' )
6369
) {
6470
ix1 = ox;
6571
for ( i1 = 0; i1 < N; i1++ ) {

0 commit comments

Comments
 (0)