Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Aug 1, 2024
1 parent 561cba2 commit fc54a2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/blas/base/dspmv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ Note that indexing is relative to the first index. To introduce an offset, use [
var Float64Array = require( '@stdlib/array/float64' );

// Initial arrays...
var x0 = new Float64Array( [ 1.0, 1.0 ] );
var y0 = new Float64Array( [ 1.0, 1.0 ] );
var x0 = new Float64Array( [ 0.0, 1.0, 1.0 ] );
var y0 = new Float64Array( [ 0.0, 1.0, 1.0 ] );
var AP = new Float64Array( [ 1.0, 2.0, 3.0 ] );

// Create offset views...
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*0 ); // start at 1st element
var y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*0 ); // start at 1st element
var x1 = new Float64Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var y1 = new Float64Array( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); // start at 2nd element

dspmv( 'row-major', 'upper', 2, 1.0, AP, x1, -1, 1.0, y1, -1 );
// y0 => <Float64Array>[ 6.0, 4.0 ]
// y0 => <Float64Array>[ 0.0, 6.0, 4.0 ]
```

#### dspmv.ndarray( order, uplo, N, α, AP, oa, x, sx, ox, β, y, sy, oy )
Expand Down
10 changes: 5 additions & 5 deletions lib/node_modules/@stdlib/blas/base/sspmv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ Note that indexing is relative to the first index. To introduce an offset, use [
var Float32Array = require( '@stdlib/array/float32' );

// Initial arrays...
var x0 = new Float32Array( [ 1.0, 1.0 ] );
var y0 = new Float32Array( [ 1.0, 1.0 ] );
var x0 = new Float32Array( [ 0.0, 1.0, 1.0 ] );
var y0 = new Float32Array( [ 0.0, 1.0, 1.0 ] );
var AP = new Float32Array( [ 1.0, 2.0, 3.0 ] );

// Create offset views...
var x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*0 ); // start at 1st element
var y1 = new Float32Array( y0.buffer, y0.BYTES_PER_ELEMENT*0 ); // start at 1st element
var x1 = new Float32Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
var y1 = new Float32Array( y0.buffer, y0.BYTES_PER_ELEMENT*1 ); // start at 2nd element

sspmv( 'row-major', 'upper', 2, 1.0, AP, x1, -1, 1.0, y1, -1 );
// y0 => <Float32Array>[ 6.0, 4.0 ]
// y0 => <Float32Array>[ 0.0, 6.0, 4.0 ]
```

#### sspmv.ndarray( order, uplo, N, α, AP, x, sx, ox, β, y, sy, oy )
Expand Down

1 comment on commit fc54a2b

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
blas/base/dspmv $\color{green}421/421$
$\color{green}+100.00\%$
$\color{green}47/47$
$\color{green}+100.00\%$
$\color{green}3/3$
$\color{green}+100.00\%$
$\color{green}421/421$
$\color{green}+100.00\%$
blas/base/sspmv $\color{green}438/438$
$\color{green}+100.00\%$
$\color{green}69/69$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}438/438$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.