Skip to content

Commit 8d9d9a8

Browse files
committed
chore: clean-up
--- 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: na - 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 62abab2 commit 8d9d9a8

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The function has the following parameters:
5353
- **x**: input [`Float32Array`][mdn-float32array].
5454
- **sx**: stride length for `x`.
5555
- **A**: input matrix stored in linear memory as a [`Float32Array`][mdn-float32array].
56-
- **lda**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`).
56+
- **LDA**: stride of the first dimension of `A` (a.k.a., leading dimension of the matrix `A`).
5757

5858
The stride parameters determine how elements in the input arrays are accessed at runtime. For example, to iterate over the elements of `x` in reverse order,
5959

@@ -277,37 +277,37 @@ void c_ssyr_ndarray( const CBLAS_UPLO uplo, const CBLAS_INT N, const float alpha
277277
int main( void ) {
278278
// Define 3x3 symmetric matrices stored in row-major layout:
279279
float A1[ 3*3 ] = {
280-
1.0, 2.0, 3.0,
281-
2.0, 1.0, 2.0,
282-
3.0, 2.0, 1.0
280+
1.0f, 2.0f, 3.0f,
281+
2.0f, 1.0f, 2.0f,
282+
3.0f, 2.0f, 1.0f
283283
};
284284

285285
float A2[ 3*3 ] = {
286-
1.0, 2.0, 3.0,
287-
2.0, 1.0, 2.0,
288-
3.0, 2.0, 1.0
286+
1.0f, 2.0f, 3.0f,
287+
2.0f, 1.0f, 2.0f,
288+
3.0f, 2.0f, 1.0f
289289
};
290290

291291
// Define a vector:
292-
const float x[ 3 ] = { 1.0, 2.0, 3.0 };
292+
const float x[ 3 ] = { 1.0f, 2.0f, 3.0f };
293293

294294
// Specify the number of elements along each dimension of `A1` and `A2`:
295295
const int N = 3;
296296

297297
// Perform the symmetric rank 1 operation `A = α*x*x^T + A`:
298-
c_ssyr( CblasColMajor, CblasUpper, N, 1.0, x, 1, A1, N );
298+
c_ssyr( CblasColMajor, CblasUpper, N, 1.0f, x, 1, A1, N );
299299

300300
// Print the result:
301301
for ( int i = 0; i < N*N; i++ ) {
302-
printf( "A1[ %i ] = %lf\n", i, A1[ i ] );
302+
printf( "A1[ %i ] = %f\n", i, A1[ i ] );
303303
}
304304

305305
// Perform the symmetric rank 1 operation `A = α*x*x^T + A` using alternative indexing semantics:
306306
c_ssyr_ndarray( CblasUpper, N, 1.0, x, 1, 0, A2, N, 1, 0 );
307307

308308
// Print the result:
309309
for ( int i = 0; i < N*N; i++ ) {
310-
printf( "A2[ %i ] = %lf\n", i, A[ i ] );
310+
printf( "A2[ %i ] = %f\n", i, A[ i ] );
311311
}
312312
}
313313
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ interface Routine {
5151
( order: Layout, uplo: MatrixTriangle, N: number, alpha: number, x: Float32Array, strideX: number, A: Float32Array, LDA: number ): Float32Array;
5252

5353
/**
54-
* Performs the matrix-vector operation `y = alpha*A*x + beta*y` using alternative indexing semantics and where `alpha` and `beta` are scalars, `x` and `y` are `N` element vectors, and `A` is an `N` by `N` symmetric matrix.
54+
* Performs the symmetric rank 1 operation `A = α*x*x^T + A` using alternative indexing semantics and where `α` is a scalar, `x` is an `N` element vector, and `A` is an `N` by `N` symmetric matrix.
5555
*
5656
* @param uplo - specifies whether the upper or lower triangular part of the symmetric matrix `A` should be referenced
5757
* @param N - number of elements along each dimension in the matrix `A`

lib/node_modules/@stdlib/blas/base/ssyr/include/stdlib/blas/base/ssyr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ extern "C" {
3232
#endif
3333

3434
/**
35-
* Performs the symmetric rank 1 operation `A = α*x*x^T + A`.
35+
* Performs the symmetric rank 1 operation `A = α*x*x^T + A` where `α` is a scalar, `x` is an `N` element vector, and `A` is an `N` by `N` symmetric matrix.
3636
*/
3737
void API_SUFFIX(c_ssyr)( const CBLAS_LAYOUT layout, const CBLAS_UPLO uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT strideX, float *A, const CBLAS_INT LDA );
3838

3939
/**
40-
* Performs the symmetric rank 1 operation `A = α*x*x^T + A` using alternative indexing semantics.
40+
* Performs the symmetric rank 1 operation `A = α*x*x^T + A`, using alternative indexing semantics and where `α` is a scalar, `x` is an `N` element vector, and `A` is an `N` by `N` symmetric matrix.
4141
*/
4242
void API_SUFFIX(c_ssyr_ndarray)( const CBLAS_UPLO uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *A, const CBLAS_INT strideA1, const CBLAS_INT strideA2, const CBLAS_INT offsetA );
4343

lib/node_modules/@stdlib/blas/base/ssyr/include/stdlib/blas/base/ssyr_cblas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern "C" {
3232
#endif
3333

3434
/**
35-
* Performs the symmetric rank 1 operation `A = α*x*x^T + A`.
35+
* Performs the symmetric rank 1 operation `A = α*x*x^T + A` where `α` is a scalar, `x` is an `N` element vector, and `A` is an `N` by `N` symmetric matrix.
3636
*/
3737
void API_SUFFIX(cblas_ssyr)( const CBLAS_LAYOUT layout, const CBLAS_UPLO uplo, const CBLAS_INT N, const float alpha, const float *X, const CBLAS_INT strideX, float *A, const CBLAS_INT LDA );
3838

0 commit comments

Comments
 (0)