Skip to content

Commit 42175c0

Browse files
committed
refactor: cleanup
--- 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 bc63789 commit 42175c0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ function dlange( norm, M, N, A, strideA1, strideA2, offsetA, work, strideWork, o
169169

170170
else if ( norm === 'frobenius' ) {
171171
out = new Float64Array( [ 0.0, 1.0 ] );
172+
ia1 = offsetA;
172173
for ( i = 0; i < N; i++ ) {
173-
dlassq( M, A, strideA1, offsetA + (i*strideA2), out[ 0 ], out[ 1 ], out, 1, 0 ); // eslint-disable-line max-len
174+
dlassq( M, A, strideA1, ia1, out[ 0 ], out[ 1 ], out, 1, 0 );
175+
ia1 += strideA2;
174176
}
175177
value = out[ 0 ] * sqrt( out[ 1 ] );
176178
}

lib/node_modules/@stdlib/lapack/base/dlange/lib/isoperation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var contains = require( '@stdlib/array/base/assert/contains' ).factory;
2525

2626
// VARIABLES //
2727

28-
var JOBS = [ 'max', 'infinity', 'one', 'frobenius' ];
28+
var NORMS = [ 'max', 'infinity', 'one', 'frobenius' ];
2929

3030

3131
// MAIN //
@@ -36,7 +36,7 @@ var JOBS = [ 'max', 'infinity', 'one', 'frobenius' ];
3636
* @name isOperation
3737
* @type {Function}
3838
* @param {*} v - value to test
39-
* @returns {boolean} boolean indicating whether an input value is a supported job
39+
* @returns {boolean} boolean indicating whether an input value is a supported norm
4040
*
4141
* @example
4242
* var bool = isOperation( 'max' );
@@ -54,7 +54,7 @@ var JOBS = [ 'max', 'infinity', 'one', 'frobenius' ];
5454
* bool = isOperation( 'foo' );
5555
* // returns false
5656
*/
57-
var isOperation = contains( JOBS );
57+
var isOperation = contains( NORMS );
5858

5959

6060
// EXPORTS //

0 commit comments

Comments
 (0)