Skip to content

Commit 51ab746

Browse files
committed
chore: update implementation
--- 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: 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 08ab142 commit 51ab746

File tree

116 files changed

+1994
-891
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1994
-891
lines changed

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

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# strsm
2222

23-
> Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
23+
> Solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
2424
2525
<section class = "usage">
2626

@@ -30,18 +30,18 @@ limitations under the License.
3030
var strsm = require( '@stdlib/blas/base/strsm' );
3131
```
3232

33-
#### strsm( order, side, uplo, transa, diag, m, n, alpha, A, LDA, B, LDB )
33+
#### strsm( order, side, uplo, transa, diag, M, N, alpha, A, LDA, B, LDB )
3434

35-
Solves matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
35+
Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
3636

3737
```javascript
3838
var Float32Array = require( '@stdlib/array/loat32' );
3939

40-
A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] );
41-
B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] );
40+
var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
41+
var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
4242

43-
strsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 );
44-
// B => <Float32Array>[ 30.0, 6.0, 0.0, 12.0 ]
43+
strsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 );
44+
// B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
4545
```
4646

4747
The function has the following parameters:
@@ -51,8 +51,8 @@ The function has the following parameters:
5151
- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied.
5252
- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication.
5353
- **diag**: specifies whether or not `A` is unit triangular.
54-
- **m**: number of rows in `B`.
55-
- **n**: number of columns in `B`.
54+
- **M**: number of rows in `B`.
55+
- **N**: number of columns in `B`.
5656
- **alpha**: scalar constant.
5757
- **A**: input matrix `A`.
5858
- **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`).
@@ -61,35 +61,35 @@ The function has the following parameters:
6161

6262
Note that indexing is relative to the first index. To introduce an offset, use [`typed array`][mdn-typed-array] views.
6363

64-
<!-- eslint-disable stdlib/capitalized-comments -->
64+
<!-- eslint-disable stdlib/capitalized-comments, max-len -->
6565

6666
```javascript
6767
var Float32Array = require( '@stdlib/array/loat32' );
6868

6969
// Initial arrays...
70-
var A0 = new Float32Array( [ 0.0, 1.0, 3.0, 0.0, 4.0 ] );
71-
var B0 = new Float32Array( [ 0.0, 5.0, 7.0, 0.0, 8.0 ] );
70+
var A0 = new Float32Array( [ 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
71+
var B0 = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
7272

7373
// Create offset views...
7474
var A1 = new Float32Array( A0.buffer, A0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
7575
var B1 = new Float32Array( B0.buffer, B0.BYTES_PER_ELEMENT*1 ); // start at 2nd element
7676

77-
strsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A1, 2, B1, 2 );
78-
// B0 => <Float32Array>[ 0.0, 30.0, 6.0, 0.0, 12.0 ]
77+
strsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A1, 3, B1, 3 );
78+
// B0 => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
7979
```
8080

81-
#### strsm.ndarray( s, ul, t, d, m, n, α, A, sa1, sa2, oa, B, sb1, sb2, ob )
81+
#### strsm.ndarray( s, ul, t, d, M, N, α, A, sa1, sa2, oa, B, sb1, sb2, ob )
8282

83-
Solves matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` using alternative indexing semantics and where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
83+
Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` using alternative indexing semantics and where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
8484

8585
```javascript
8686
var Float32Array = require( '@stdlib/array/loat32' );
8787

88-
A = new Float32Array( [ 0.0, 0.0, 1.0, 3.0, 0.0, 4.0 ] );
89-
B = new Float32Array( [ 0.0, 5.0, 7.0, 0.0, 8.0 ] );
88+
var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
89+
var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
9090

91-
strsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 2, B, 2, 1, 1 );
92-
// B => <Float32Array>[ 0.0, 30.0, 6.0, 0.0, 12.0 ]
91+
strsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 );
92+
// B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
9393
```
9494

9595
The function has the following parameters:
@@ -98,8 +98,8 @@ The function has the following parameters:
9898
- **uplo**: specifies whether the upper or lower triangular part of the matrix `A` is supplied.
9999
- **transa**: specifies the form of `op( A )` to be used in the matrix multiplication.
100100
- **diag**: specifies whether or not `A` is unit triangular.
101-
- **m**: number of rows in `B`.
102-
- **n**: number of columns in `B`.
101+
- **M**: number of rows in `B`.
102+
- **N**: number of columns in `B`.
103103
- **alpha**: scalar constant.
104104
- **A**: input matrix `A`.
105105
- **sa1**: stride of the first dimension of `A`.
@@ -112,14 +112,16 @@ The function has the following parameters:
112112

113113
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameters support indexing semantics based on starting indices. For example,
114114

115+
<!-- eslint-disable max-len -->
116+
115117
```javascript
116118
var Float32Array = require( '@stdlib/array/loat32' );
117119

118-
A = new Float32Array( [ 0.0, 0.0, 1.0, 3.0, 0.0, 4.0 ] );
119-
B = new Float32Array( [ 0.0, 5.0, 7.0, 0.0, 8.0 ] );
120+
var A = new Float32Array( [ 0.0, 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
121+
var B = new Float32Array( [ 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
120122

121-
strsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 2, B, 2, 1, 1 );
122-
// B => <Float32Array>[ 0.0, 30.0, 6.0, 0.0, 12.0 ]
123+
strsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 1, B, 3, 1, 1 );
124+
// B => <Float32Array>[ 0.0, 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
123125
```
124126

125127
</section>

lib/node_modules/@stdlib/blas/base/strsm/docs/types/index.d.ts

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ import { Layout, MatrixTriangle, DiagonalType, OperationSide, TransposeOperation
2727
*/
2828
interface Routine {
2929
/**
30-
* Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
30+
* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
3131
*
3232
* @param order - storage layout of `A` and `B`
3333
* @param side - specifies whether `op( A )` appears on the left or right of `X`
3434
* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied
3535
* @param transa - specifies the form of `op( A )` to be used in matrix multiplication
3636
* @param diag - specifies whether or not `A` is unit triangular
37-
* @param m - number of rows in `B`
38-
* @param n - number of columns in `B`
37+
* @param M - number of rows in `B`
38+
* @param N - number of columns in `B`
3939
* @param alpha - scalar constant
4040
* @param A - input matrix `A`
4141
* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
@@ -46,23 +46,23 @@ interface Routine {
4646
* @example
4747
* var Float32Array = require( '@stdlib/array/float32' );
4848
*
49-
* var A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] );
50-
* var B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] );
49+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
50+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
5151
*
52-
* strsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 );
53-
* // B => <Float32Array>[ 30.0, 0.0, 0.0, 12.0 ]
52+
* strsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 );
53+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
5454
*/
55-
( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number ): Float32Array;
55+
( order: Layout, side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float32Array, LDA: number, B: Float32Array, LDB: number ): Float32Array;
5656

5757
/**
58-
* Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
58+
* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` using alternative indexing semantics and where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
5959
*
6060
* @param side - specifies whether `op( A )` appears on the left or right of `X`
6161
* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied
6262
* @param transa - specifies the form of `op( A )` to be used in matrix multiplication
6363
* @param diag - specifies whether or not `A` is unit triangular
64-
* @param m - number of rows in `B`
65-
* @param n - number of columns in `B`
64+
* @param M - number of rows in `B`
65+
* @param N - number of columns in `B`
6666
* @param alpha - scalar constant
6767
* @param A - input matrix `A`
6868
* @param strideA1 - stride of the first dimension of `A`
@@ -77,25 +77,25 @@ interface Routine {
7777
* @example
7878
* var Float32Array = require( '@stdlib/array/float32' );
7979
*
80-
* var A = new Float32Array( [ 0.0, 0.0, 1.0, 3.0, 0.0, 4.0 ] );
81-
* var B = new Float32Array( [ 0.0, 5.0, 7.0, 0.0, 8.0 ] );
80+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
81+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
8282
*
83-
* strsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 2, B, 2, 1, 1 );
84-
* // B => <Float32Array>[ 0.0, 30.0, 0.0, 0.0, 12.0 ]
83+
* strsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 );
84+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
8585
*/
86-
ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, m: number, n: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number ): Float32Array;
86+
ndarray( side: OperationSide, uplo: MatrixTriangle, transa: TransposeOperation, diag: DiagonalType, M: number, N: number, alpha: number, A: Float32Array, strideA1: number, strideA2: number, offsetA: number, B: Float32Array, strideB1: number, strideB2: number, offsetB: number ): Float32Array;
8787
}
8888

8989
/**
90-
* Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
90+
* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
9191
*
9292
* @param order - storage layout of `A` and `B`
9393
* @param side - specifies whether `op( A )` appears on the left or right of `X`
9494
* @param uplo - specifies whether the upper or lower triangular part of the matrix `A` is supplied
9595
* @param transa - specifies the form of `op( A )` to be used in matrix multiplication
9696
* @param diag - specifies whether or not `A` is unit triangular
97-
* @param m - number of rows in `B`
98-
* @param n - number of columns in `B`
97+
* @param M - number of rows in `B`
98+
* @param N - number of columns in `B`
9999
* @param alpha - scalar constant
100100
* @param A - input matrix `A`
101101
* @param LDA - stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`)
@@ -106,20 +106,20 @@ interface Routine {
106106
* @example
107107
* var Float32Array = require( '@stdlib/array/float32' );
108108
*
109-
* var A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] );
110-
* var B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] );
109+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
110+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
111111
*
112-
* strsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 );
113-
* // B => <Float32Array>[ 30.0, 0.0, 0.0, 12.0 ]
112+
* strsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 );
113+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
114114
*
115115
* @example
116116
* var Float32Array = require( '@stdlib/array/float32' );
117117
*
118-
* var A = new Float32Array( [ 0.0, 0.0, 1.0, 3.0, 0.0, 4.0 ] );
119-
* var B = new Float32Array( [ 0.0, 5.0, 7.0, 0.0, 8.0 ] );
118+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
119+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
120120
*
121-
* strsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 2, B, 2, 1, 1 );
122-
* // B => <Float32Array>[ 0.0, 30.0, 0.0, 0.0, 12.0 ]
121+
* strsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 );
122+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
123123
*/
124124
declare var strsm: Routine;
125125

lib/node_modules/@stdlib/blas/base/strsm/lib/base.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider movin
9393
// MAIN //
9494

9595
/**
96-
* Solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
96+
* Solves matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
9797
*
9898
* @private
9999
* @param {string} side - specifies whether `op( A )` appears on the left or right of `X`
@@ -116,11 +116,11 @@ function zeros( M, N, X, strideX1, strideX2, offsetX ) { // TODO: consider movin
116116
* @example
117117
* var Float32Array = require( '@stdlib/array/float32' );
118118
*
119-
* var A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] );
120-
* var B = new Float32Array( [ 5.0, 6.0, 0.0, 8.0 ] );
119+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
120+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
121121
*
122-
* strsm( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 0, B, 2, 1, 0 );
123-
* // B => <Float32Array>[ 30.0, 0.0, 0.0, 12.0 ]
122+
* strsm( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 );
123+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
124124
*/
125125
function strsm( side, uplo, transa, diag, M, N, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB ) { // eslint-disable-line max-params
126126
var nonunit;

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@
1919
'use strict';
2020

2121
/**
22-
* BLAS routine to solve matrix equation `op(A) * X = alpha * B` or `X * op(A) = alpha * B` where `alpha` is a scalar, `X` and `B` are `m` by `n` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
22+
* BLAS routine to solve matrix equation `op(A) * X = α * B` or `X * op(A) = α * B` where `α` is a scalar, `X` and `B` are `M` by `N` matrices, `A` is a unit, or non-unit, upper or lower triangular matrix and `op(A)` is one of `op(A) = A` or `op(A) = A^T`. The matrix `X` is overwritten on `B`.
2323
*
2424
* @module @stdlib/blas/base/strsm
2525
*
2626
* @example
2727
* var Float32Array = require( '@stdlib/array/float32' );
2828
* var strsm = require( '@stdlib/blas/base/strsm' );
2929
*
30-
* var A = new Float32Array( [ 1.0, 3.0, 0.0, 4.0 ] );
31-
* var B = new Float32Array( [ 5.0, 7.0, 0.0, 8.0 ] );
30+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
31+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
3232
*
33-
* strsm( 'row-major', 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, B, 2 );
34-
* // B => <Float32Array>[ 30.0, 0.0, 0.0, 12.0 ]
33+
* strsm( 'row-major', 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, B, 3 );
34+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
3535
*
3636
* @example
3737
* var Float32Array = require( '@stdlib/array/float32' );
3838
* var strsm = require( '@stdlib/blas/base/strsm' );
3939
*
40-
* var A = new Float32Array( [ 0.0, 0.0, 1.0, 3.0, 0.0, 4.0 ] );
41-
* var B = new Float32Array( [ 0.0, 5.0, 7.0, 0.0, 8.0 ] );
40+
* var A = new Float32Array( [ 1.0, 0.0, 0.0, 2.0, 3.0, 0.0, 4.0, 5.0, 6.0 ] );
41+
* var B = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
4242
*
43-
* strsm.ndarray( 'left', 'upper', 'no-transpose', 'non-unit', 2, 2, 6.0, A, 2, 1, 2, B, 2, 1, 1 );
44-
* // B => <Float32Array>[ 0.0, 30.0, 6.0, 0.0, 12.0 ]
43+
* strsm.ndarray( 'left', 'lower', 'no-transpose', 'unit', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0 );
44+
* // B => <Float32Array>[ 1.0, 2.0, 3.0, 2.0, 1.0, 0.0, -7.0, -5.0, -3.0 ]
4545
*/
4646

4747
// MODULES //

0 commit comments

Comments
 (0)