Skip to content

Commit c6599b7

Browse files
kgrytegunjjoshi
authored andcommitted
docs: fix example order
1 parent 0ada905 commit c6599b7

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/blas/base/ssyr

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/blas/base/ssyr/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A`, using alternative in
9393
var Float32Array = require( '@stdlib/array/float32' );
9494

9595
var A = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 0.0, 0.0, 1.0 ] );
96-
var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
96+
var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
9797

98-
ssyr.ndarray( 'upper', 3, 1.0, x, -2, 4, A, 3, 1, 0 );
99-
// A => <Float32Array>[ 26.0, 17.0, 8.0, 0.0, 10.0, 5.0, 0.0, 0.0, 2.0 ]
98+
ssyr.ndarray( 'upper', 3, 1.0, x, 1, 0, A, 3, 1, 0 );
99+
// A => <Float32Array>[ 2.0, 4.0, 6.0, 0.0, 5.0, 8.0, 0.0, 0.0, 10.0 ]
100100
```
101101

102102
The function has the following additional parameters:
@@ -112,10 +112,10 @@ While [`typed array`][mdn-typed-array] views mandate a view offset based on the
112112
var Float32Array = require( '@stdlib/array/float32' );
113113

114114
var A = new Float32Array( [ 1.0, 2.0, 3.0, 0.0, 1.0, 2.0, 0.0, 0.0, 1.0 ] );
115-
var x = new Float32Array( [ 1.0, 2.0, 3.0 ] );
115+
var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
116116

117-
ssyr.ndarray( 'upper', 3, 1.0, x, 1, 0, A, 3, 1, 0 );
118-
// A => <Float32Array>[ 2.0, 4.0, 6.0, 0.0, 5.0, 8.0, 0.0, 0.0, 10.0 ]
117+
ssyr.ndarray( 'upper', 3, 1.0, x, -2, 4, A, 3, 1, 0 );
118+
// A => <Float32Array>[ 26.0, 17.0, 8.0, 0.0, 10.0, 5.0, 0.0, 0.0, 2.0 ]
119119
```
120120

121121
</section>

0 commit comments

Comments
 (0)