Skip to content

Commit 0166476

Browse files
committed
chore: update 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: passed - 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: 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 0626cb2 commit 0166476

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/lapack/base/dlarf1f/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ The sign of the increment parameter `incv` determines the order in which element
8686
var Float64Array = require( '@stdlib/array/float64' );
8787

8888
var C = new Float64Array( [ 1.0, 5.0, 9.0, 2.0, 6.0, 10.0, 3.0, 7.0, 11.0, 4.0, 8.0, 12.0 ] );
89-
var V = new Float64Array( [ 0.5, 0.5, 0.5, 0.5 ] );
89+
var V = new Float64Array( [ 0.5, 0.4, 0.3, 0.2 ] );
9090
var work = new Float64Array( 3 );
9191

9292
var out = dlarf1f( 'row-major', 'left', 4, 3, V, -1, 1.0, C, 3, work );
93-
// returns <Float64Array>[ -4.5, -10.5, -16.5, -0.75, -1.75, -2.75, 0.25, -0.75, -1.75, 1.25, 0.25, -0.75 ]
93+
// returns <Float64Array>[ ~-3.80, -8.6, ~-13.4, ~0.56, 1.92, ~3.28, ~1.08, ~1.56, ~2.04, ~1.60, ~1.20, ~0.80 ]
9494
```
9595

9696
To perform strided access over `V`, provide an `abs(incv)` value greater than one. For example, to access every other element in `V`,

lib/node_modules/@stdlib/lapack/base/dlarf1f/examples/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ var C = new Float64Array( [ 1.0, 5.0, 9.0, 2.0, 6.0, 10.0, 3.0, 7.0, 11.0, 4.0,
3333
console.log( ndarray2array( C, shape, strides, 0, order ) );
3434

3535
// Define the vector `v` and workspace array:
36-
var V = new Float64Array( [ 0.5, 0.5, 0.5, 0.5 ] );
36+
var V = new Float64Array( [ 0.5, 0.4, 0.3, 0.2 ] );
3737
var work = new Float64Array( 3 );
3838

3939
// Apply the elementary reflector:
40-
dlarf1f( order, 'left', shape[ 0 ], shape[ 1 ], V, 1, 1.0, C, strides[ 0 ], work );
40+
dlarf1f( order, 'left', shape[ 0 ], shape[ 1 ], V, -1, 1.0, C, strides[ 0 ], work );
4141
console.log( ndarray2array( C, shape, strides, 0, order ) );

lib/node_modules/@stdlib/lapack/base/dlarf1f/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* var V = new Float64Array( [ 0.5, 0.5, 0.5, 0.5 ] );
3838
* var work = new Float64Array( 3 );
3939
*
40-
* var out = dlarf1f( 'left', 4, 3, V, 1, 1.0, C, 3, work );
40+
* var out = dlarf1f( 'row-major', 'left', 4, 3, V, 1, 1.0, C, 3, work );
4141
* // returns <Float64Array>[ -4.5, -10.5, -16.5, -0.75, -1.75, -2.75, 0.25, -0.75, -1.75, 1.25, 0.25, -0.75 ]
4242
*/
4343

0 commit comments

Comments
 (0)