Skip to content

Commit cedc9bb

Browse files
committed
docs: fix example code
--- 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 fb9d401 commit cedc9bb

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

lib/node_modules/@stdlib/array/base/cuevery-by/lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* var cueveryBy = require( '@stdlib/array/base/cuevery-by' );
2828
*
2929
* function isPositive( value ) {
30-
* return ( value > 0 );
30+
* return ( value > 0 );
3131
* }
3232
*
3333
* var x = [ 1, 1, 1, 0, 1 ];
@@ -43,7 +43,7 @@
4343
* var out = cueveryBy.assign( x, y, 2, 0, isPositive );
4444
* // returns [ true, null, true, null, true, null, false, null, false, null ]
4545
*
46-
* var bool = ( arr === out );
46+
* var bool = ( y === out );
4747
* // returns true
4848
*/
4949

lib/node_modules/@stdlib/blas/base/ggemv/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* var y = [ 1.0, 1.0 ];
4242
*
4343
* ggemv.ndarray( 'no-transpose', 2, 3, 1.0, A, 3, 1, 0, x, 1, 0, 1.0, y, 1, 0 );
44-
* // A => [ 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ]
44+
* // y => [ 7.0, 16.0 ]
4545
*/
4646

4747
// MODULES //

lib/node_modules/@stdlib/blas/base/sspr/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* var AP = new Float32Array( [ 1.0, 2.0, 3.0, 1.0, 2.0, 1.0 ] ); // => [ [ 1.0, 2.0, 3.0 ], [ 0.0, 1.0, 2.0 ], [ 0.0, 0.0, 1.0 ] ]
4141
* var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
4242
*
43-
* sspr.ndarray( 'row-major', 'upper', 3, 1.0, x, 1, AP );
43+
* sspr.ndarray( 'row-major', 'upper', 3, 1.0, x, 1, 0, AP, 1, 0 );
4444
* // AP => <Float32Array>[ 2.0, 4.0, 6.0, 5.0, 8.0, 10.0 ]
4545
*/
4646

lib/node_modules/@stdlib/blas/base/wasm/zcopy/lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*
3434
* // Perform operation:
3535
* zcopy.main( x.length, x, 1, y, 1 );
36-
// y => <Complex128Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]
36+
* // y => <Complex128Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]
3737
*
3838
* @example
3939
* var Complex128Array = require( '@stdlib/array/complex128' );
@@ -46,7 +46,7 @@
4646
*
4747
* // Perform operation:
4848
* zcopy.ndarray( x.length, x, 1, 0, y, 1, 0 );
49-
// y => <Complex128Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]
49+
* // y => <Complex128Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ]
5050
*
5151
* @example
5252
* var Memory = require( '@stdlib/wasm/memory' );
@@ -100,7 +100,7 @@
100100
* mod.read( yptr, view );
101101
*
102102
* console.log( reinterpretComplex128( view, 0 ) );
103-
* // => <Float32Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ]
103+
* // => <Float64Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0 ]
104104
*/
105105

106106
// MODULES //

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*
5151
* var cx = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
5252
*
53-
* clacgv.ndarray( 3, 1, 0 );
53+
* clacgv.ndarray( 3, cx, 1, 0 );
5454
*
5555
* var z = cx.get( 0 );
5656
* // returns <Complex64>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*
5151
* var zx = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
5252
*
53-
* zlacgv.ndarray( 3, 1, 0 );
53+
* zlacgv.ndarray( 3, zx, 1, 0 );
5454
*
5555
* var z = zx.get( 0 );
5656
* // returns <Complex128>

0 commit comments

Comments
 (0)