Skip to content

Commit 0daa267

Browse files
authored
chore: add examples in real.txt
Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent b64a024 commit 0daa267

File tree

1 file changed

+20
-0
lines changed
  • lib/node_modules/@stdlib/blas/base/dtbsv/docs

1 file changed

+20
-0
lines changed

lib/node_modules/@stdlib/blas/base/dtbsv/docs/repl.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151

5252
Examples
5353
--------
54+
// Standard usage:
5455
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, 2.0, 3.0 ] );
5556
> var A = new {{alias:@stdlib/array/float64}}( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] );
5657
> var order = 'row-major';
@@ -59,6 +60,25 @@
5960
> {{alias}}( order, uplo, trans, 'unit', 3, 1, A, 2, x, 1 )
6061
<Float64Array>[ 8.0, -7.0, 3.0 ]
6162

63+
// Advanced indexing:
64+
> var x = new {{alias:@stdlib/array/float64}}( [ 1.0, 0.0, 2.0, 0.0, 3.0 ] );
65+
> var A = new {{alias:@stdlib/array/float64}}( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] );
66+
> var order = 'row-major';
67+
> var uplo = 'upper';
68+
> var trans = 'no-transpose';
69+
> {{alias}}( order, uplo, trans, 'unit', 3, 1, A, 2, x, 2 )
70+
<Float64Array>[ 8.0, 0.0, -7.0, 0.0, 3.0 ]
71+
72+
// Using typed array views:
73+
> var x0 = new {{alias:@stdlib/array/float64}}( [ 0.0, 1.0, 2.0, 3.0 ] );
74+
> var A = new {{alias:@stdlib/array/float64}}( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0 ] );
75+
> var x1 = new {{alias:@stdlib/array/float64}}( x0.buffer, x0.BYTES_PER_ELEMENT*1 );
76+
> var order = 'row-major';
77+
> var uplo = 'upper';
78+
> var trans = 'no-transpose';
79+
> {{alias}}( order, uplo, trans, 'unit', 3, 1, A, 2, x, 1 )
80+
<Float64Array>[ 0.0, 8.0, -7.0, 3.0 ]
81+
6282

6383
{{alias}}.ndarray( uplo, trans, diag, N, K, A, sa1, sa2, oa, x, sx, ox )
6484
Solves one of the systems of equations `A*x = b` or `A^T*x = b`, using

0 commit comments

Comments
 (0)