Skip to content

Commit 4c297d2

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 fc9c88f commit 4c297d2

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var max = require( '@stdlib/math/base/special/fast/max' );
2424
var isLayout = require( '@stdlib/blas/base/assert/is-layout' );
2525
var isMatrixTriangle = require( '@stdlib/blas/base/assert/is-matrix-triangle' );
26+
var isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
2627
var stride2offset = require( '@stdlib/strided/base/stride2offset' );
2728
var format = require( '@stdlib/string/format' );
2829
var base = require( './base.js' );
@@ -87,7 +88,7 @@ function ssyr2( order, uplo, N, alpha, x, strideX, y, strideY, A, LDA ) {
8788
if ( N === 0 || alpha === 0.0 ) {
8889
return A;
8990
}
90-
if ( order === 'column-major' ) {
91+
if ( isColumnMajor( order ) ) {
9192
sa1 = 1;
9293
sa2 = LDA;
9394
} else { // order === 'row-major'

0 commit comments

Comments
 (0)