Skip to content

Commit 3382c53

Browse files
committed
chore: clean up in examples
--- 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: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent a62eb37 commit 3382c53

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

  • lib/node_modules/@stdlib/blas/base/ctrsv/examples

lib/node_modules/@stdlib/blas/base/ctrsv/examples/index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,15 @@ function rand() {
3030

3131
var N = 3;
3232

33-
// Create random vectors:
3433
var x = filledarrayBy( N, 'complex64', rand );
35-
console.log( x.get( 0 ).toString() );
36-
37-
// Define N-by-N banded matrix in compact format:
3834
var A = filledarrayBy( N*N, 'complex64', rand );
39-
console.log( A.get( 0 ).toString() );
4035

41-
// Solves one of the matrix-vector operations `x := A*x`:
4236
ctrsv( 'row-major', 'lower', 'no-transpose', 'non-unit', N, A, N, x, 1 );
4337

4438
// Print the results:
45-
logEach( '(%s)', x );
39+
logEach( '%s', x );
4640

47-
// Solve one of the systems of equations `x := A*x` using alternative indexing semantics:
4841
ctrsv.ndarray( 'upper', 'no-transpose', 'unit', N, A, N, 1, 0, x, 1, 0 );
4942

5043
// Print the results:
51-
logEach( '(%s)', x );
44+
logEach( '%s', x );

0 commit comments

Comments
 (0)