Skip to content

Commit cab0b41

Browse files
Shabareesh ShettyShabareesh Shetty
authored andcommitted
docs: update jsdoc
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent d5cd6dc commit cab0b41

File tree

5 files changed

+31
-28
lines changed

5 files changed

+31
-28
lines changed

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

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,16 @@ interface Routine {
4949
*
5050
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
5151
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
52-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
52+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
5353
*
5454
* dsyr2k( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 );
55-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
55+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
5656
*/
5757
( order: Layout, uplo: MatrixTriangle, trans: TransposeOperation, N: number, K: number, alpha: number, A: Float64Array, LDA: number, B: Float64Array, LDB: number, beta: number, C: Float64Array, LDC: number ): Float64Array;
5858

5959
/**
6060
* Performs one of the symmetric rank `2K` operations `C = α*A*B^T + C = α*B*A^T + β*C` or `C = α*A^T*B + α*B^T*A + β*C`, using alternative indexing semantics and where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` and `B` are `N` by `K` matrices in the first case and `K` by `N` matrices in the second case.
6161
*
62-
* @param order - storage layout
6362
* @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied
6463
* @param trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
6564
* @param N - order of the matrix `C`
@@ -69,6 +68,10 @@ interface Routine {
6968
* @param strideA1 - stride of the first dimension of `A`
7069
* @param strideA2 - stride of the second dimension of `A`
7170
* @param offsetA - starting index for `A`
71+
* @param B - second matrix
72+
* @param strideB1 - stride of the first dimension of `B`
73+
* @param strideB2 - stride of the second dimension of `B`
74+
* @param offsetB - starting index for `B`
7275
* @param beta - scalar constant
7376
* @param C - third matrix
7477
* @param strideC1 - stride of the first dimension of `C`
@@ -81,10 +84,10 @@ interface Routine {
8184
*
8285
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
8386
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
84-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
87+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
8588
*
86-
* dsyr2k( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 );
87-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
89+
* dsyr2k.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 );
90+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
8891
*/
8992
ndarray( uplo: MatrixTriangle, trans: TransposeOperation, N: number, K: number, alpha: number, A: Float64Array, strideA1: number, strideA2: number, offsetA: number, B: Float64Array, strideB1: number, strideB2: number, offsetB: number, beta: number, C: Float64Array, strideC1: number, strideC2: number, offsetC: number ): Float64Array;
9093
}
@@ -112,20 +115,20 @@ interface Routine {
112115
*
113116
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
114117
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
115-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
118+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
116119
*
117120
* dsyr2k( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 );
118-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
121+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
119122
*
120123
* @example
121124
* var Float64Array = require( '@stdlib/array/float64' );
122125
*
123126
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
124127
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
125-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
128+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
126129
*
127130
* dsyr2k.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 );
128-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
131+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
129132
*/
130133
declare var dsyr2k: Routine;
131134

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ function scal( uplo, N, beta, X, strideX1, strideX2, offsetX ) { // TODO: consid
164164
// MAIN //
165165

166166
/**
167-
* Performs one of the symmetric rank `2K` operations `C = α*A*B**T + C = α*B*A**T + β*C` or `C = α*A**T*B + α*B**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` and `B` are `N` by `K` matrices in the first case and `K` by `N` matrices in the second case.
167+
* Performs one of the symmetric rank `2K` operations `C = α*A*B^T + C = α*B*A^T + β*C` or `C = α*A^T*B + α*B^T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` and `B` are `N` by `K` matrices in the first case and `K` by `N` matrices in the second case.
168168
*
169169
* @private
170-
* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied
170+
* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` to be referenced
171171
* @param {string} trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
172172
* @param {NonNegativeInteger} N - order of the matrix `C`
173173
* @param {NonNegativeInteger} K - number of columns or number of rows of the matrices `A` and `B`
@@ -192,10 +192,10 @@ function scal( uplo, N, beta, X, strideX1, strideX2, offsetX ) { // TODO: consid
192192
*
193193
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
194194
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
195-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
195+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
196196
*
197197
* dsyr2k( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 );
198-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
198+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
199199
*/
200200
function dsyr2k( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) {
201201
var isrma;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var base = require( './base.js' );
3535
* Performs one of the symmetric rank `2K` operations `C = α*A*B**T + C = α*B*A**T + β*C` or `C = α*A**T*B + α*B**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` and `B` are `N` by `K` matrices in the first case and `K` by `N` matrices in the second case.
3636
*
3737
* @param {string} order - storage layout
38-
* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied
38+
* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` to be referenced
3939
* @param {string} trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
4040
* @param {NonNegativeInteger} N - order of the matrix `C`
4141
* @param {NonNegativeInteger} K - number of columns or number of rows of the matrices `A` and `B`
@@ -49,7 +49,7 @@ var base = require( './base.js' );
4949
* @param {PositiveInteger} LDC - stride of the first dimension of `C` (a.k.a., leading dimension of the matrix `C`)
5050
* @throws {TypeError} first argument must be a valid order
5151
* @throws {TypeError} second argument must be a valid side
52-
* @throws {TypeError} third argument must specify whether the lower or upper triangular matrix is supplied.
52+
* @throws {TypeError} third argument must specify whether the lower or upper triangular matrix to be referenced.
5353
* @throws {RangeError} fourth argument must be a nonnegative integer
5454
* @throws {RangeError} fifth argument must be a nonnegative integer
5555
* @throws {RangeError} eighth argument must be greater than or equal to max(1,N) when `A` is not transposed and max(1,K) otherwise
@@ -61,10 +61,10 @@ var base = require( './base.js' );
6161
*
6262
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
6363
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
64-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
64+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
6565
*
6666
* dsyr2k( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 );
67-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
67+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
6868
*/
6969
function dsyr2k( order, uplo, trans, N, K, alpha, A, LDA, B, LDB, beta, C, LDC ) { // eslint-disable-line max-params
7070
var nrowsa;
@@ -80,7 +80,7 @@ function dsyr2k( order, uplo, trans, N, K, alpha, A, LDA, B, LDB, beta, C, LDC )
8080
throw new TypeError( format( 'invalid argument. First argument must be a valid order. Value: `%s`.', order ) );
8181
}
8282
if ( !isMatrixTriangle( uplo ) ) {
83-
throw new TypeError( format( 'invalid argument. Second argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) );
83+
throw new TypeError( format( 'invalid argument. Second argument must specify whether the lower or upper triangular matrix to be referenced. Value: `%s`.', uplo ) );
8484
}
8585
if ( !isMatrixTranspose( trans ) ) {
8686
throw new TypeError( format( 'invalid argument. Third argument must be a valid transpose operation. Value: `%s`.', trans ) );

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@
2929
*
3030
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
3131
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
32-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
32+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
3333
*
3434
* dsyr2k( 'row-major', 'upper', 'no-transpose', 3, 3, 1.0, A, 3, B, 3, 1.0, C, 3 );
35-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
35+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
3636
*
3737
* @example
3838
* var Float64Array = require( '@stdlib/array/float64' );
3939
* var dsyr2k = require( '@stdlib/blas/base/dsyr2k' );
4040
*
4141
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
4242
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
43-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
43+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
4444
*
4545
* dsyr2k.ndarray( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 );
46-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
46+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
4747
*/
4848

4949
// MODULES //

lib/node_modules/@stdlib/blas/base/dsyr2k/lib/ndarray.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var base = require( './base.js' );
3232
* Performs one of the symmetric rank `2K` operations `C = α*A*B**T + C = α*B*A**T + β*C` or `C = α*A**T*B + α*B**T*A + β*C` where `α` and `β` are scalars, `C` is an `N` by `N` symmetric matrix and `A` and `B` are `N` by `K` matrices in the first case and `K` by `N` matrices in the second case.
3333
*
3434
* @private
35-
* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` is supplied
35+
* @param {string} uplo - specifies whether the upper or lower triangular part of the symmetric matrix `C` to be referenced
3636
* @param {string} trans - specifies whether `A` should be transposed, conjugate-transposed, or not transposed
3737
* @param {NonNegativeInteger} N - order of the matrix `C`
3838
* @param {NonNegativeInteger} K - number of columns or number of rows of the matrices `A` and `B`
@@ -51,7 +51,7 @@ var base = require( './base.js' );
5151
* @param {integer} strideC2 - stride of the second dimension of `C`
5252
* @param {NonNegativeInteger} offsetC - starting index for `C`
5353
* @throws {TypeError} first argument must be a valid side
54-
* @throws {TypeError} second argument must specify whether the lower or upper triangular matrix is supplied.
54+
* @throws {TypeError} second argument must specify whether the lower or upper triangular matrix to be referenced.
5555
* @throws {RangeError} third argument must be a nonnegative integer
5656
* @throws {RangeError} fourth argument must be a nonnegative integer
5757
* @throws {RangeError} sixteenth argument must be non-zero
@@ -62,14 +62,14 @@ var base = require( './base.js' );
6262
*
6363
* var A = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
6464
* var B = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0 ] );
65-
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 0.0, 4.0, 5.0, 0.0, 0.0, 6.0 ] );
65+
* var C = new Float64Array( [ 1.0, 2.0, 3.0, 2.0, 4.0, 5.0, 3.0, 5.0, 6.0 ] );
6666
*
6767
* dsyr2k( 'upper', 'no-transpose', 3, 3, 1.0, A, 3, 1, 0, B, 3, 1, 0, 1.0, C, 3, 1, 0 );
68-
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 0.0, 158.0, 249.0, 0.0, 0.0, 394.0 ]
68+
* // C => <Float64Array>[ 29.0, 66.0, 103.0, 2.0, 158.0, 249.0, 3.0, 5.0, 394.0 ]
6969
*/
7070
function dsyr2k( uplo, trans, N, K, alpha, A, strideA1, strideA2, offsetA, B, strideB1, strideB2, offsetB, beta, C, strideC1, strideC2, offsetC ) { // eslint-disable-line max-params, max-len
7171
if ( !isMatrixTriangle( uplo ) ) {
72-
throw new TypeError( format( 'invalid argument. First argument must specify whether the lower or upper triangular matrix is supplied. Value: `%s`.', uplo ) );
72+
throw new TypeError( format( 'invalid argument. First argument must specify whether the lower or upper triangular matrix to be referenced. Value: `%s`.', uplo ) );
7373
}
7474
if ( !isMatrixTranspose( trans ) ) {
7575
throw new TypeError( format( 'invalid argument. Second argument must be a valid transpose operation. Value: `%s`.', trans ) );

0 commit comments

Comments
 (0)