Skip to content

Commit 8e6c1fd

Browse files
committed
refactor: c implementation of blas/base/ssyr
--- 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: missing_dependencies - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent ba183d8 commit 8e6c1fd

File tree

5 files changed

+337
-122
lines changed

5 files changed

+337
-122
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ssyr( 'row-major', 'upper', 3, 1.0, x, 1, A, 3 );
4747
The function has the following parameters:
4848

4949
- **order**: storage layout.
50-
- **uplo**: specifies whether the upper or lower triangular part of the symmetric matrix `A` should be referenced.
50+
- **uplo**: specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied.
5151
- **N**: number of elements along each dimension of `A`.
5252
- **α**: scalar constant.
5353
- **x**: input [`Float32Array`][mdn-float32array].
@@ -196,13 +196,13 @@ Performs the symmetric rank 1 operation `A = α*x*x^T + A`.
196196
float A[] = { 1.0f, 0.0f, 0.0f, 2.0f, 1.0f, 0.0f, 3.0f, 2.0f, 1.0f };
197197
const float x[] = { 1.0f, 2.0f, 3.0f };
198198

199-
c_ssyr( CblasColMajor, CblasUpper, 3, 1.0f, x, 1, A, 3 );
199+
c_ssyr( CblasRowMajor, CblasUpper, 3, 1.0f, x, 1, A, 3 );
200200
```
201201
202202
The function accepts the following arguments:
203203
204204
- **order**: `[in] CBLAS_LAYOUT` storage layout.
205-
- **uplo**: `[in] CBLAS_UPLO` specifies whether the upper or lower triangular part of the symmetric matrix `A` should be referenced.
205+
- **uplo**: `[in] CBLAS_UPLO` specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied.
206206
- **N**: `[in] CBLAS_INT` number of elements along each dimension of `A`.
207207
- **alpha**: `[in] float` scalar.
208208
- **X**: `[in] float*` input array.
@@ -229,7 +229,7 @@ c_ssyr_ndarray( CblasUpper, 3, 1.0f, x, 1, 0, A, 3, 1, 0 );
229229
230230
The function accepts the following arguments:
231231
232-
- **uplo**: `[in] CBLAS_UPLO` specifies whether the upper or lower triangular part of the symmetric matrix `A` should be referenced.
232+
- **uplo**: `[in] CBLAS_UPLO` specifies whether the upper or lower triangular part of the symmetric matrix `A` is supplied.
233233
- **N**: `[in] CBLAS_INT` number of elements along each dimension of `A`.
234234
- **alpha**: `[in] float` scalar.
235235
- **X**: `[in] float*` input array.
@@ -276,7 +276,7 @@ int main( void ) {
276276
const int N = 3;
277277

278278
// Perform the symmetric rank 1 operation `A = α*x*x^T + A`:
279-
c_ssyr( CblasColMajor, CblasUpper, N, 1.0f, x, 1, A, N );
279+
c_ssyr( CblasRowMajor, CblasUpper, N, 1.0f, x, 1, A, N );
280280

281281
// Print the result:
282282
for ( int i = 0; i < N*N; i++ ) {

0 commit comments

Comments
 (0)