Skip to content

Commit e26ad21

Browse files
committed
refactor: rename parameter
--- 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: passed - 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: passed - 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 844b8ce commit e26ad21

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ console.log( y );
201201
#include "stdlib/blas/base/dgemv.h"
202202
```
203203

204-
#### c_dgemv( order, trans, M, N, alpha, \*A, LDA, \*X, strideX, beta, \*Y, strideY )
204+
#### c_dgemv( layout, trans, M, N, alpha, \*A, LDA, \*X, strideX, beta, \*Y, strideY )
205205

206206
Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A^T*x + β*y`, where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` matrix.
207207

@@ -217,7 +217,7 @@ c_dgemv( CblasColMajor, CblasNoTrans, 3, 3, 1.0, A, 3, x, 1, 1.0, y, 1 );
217217
218218
The function accepts the following arguments:
219219
220-
- **order**: `[in] CBLAS_LAYOUT` storage layout.
220+
- **layout**: `[in] CBLAS_LAYOUT` storage layout.
221221
- **trans**: `[in] CBLAS_TRANSPOSE` specifies whether `A` should be transposed, conjugate-transposed, or not transposed.
222222
- **M**: `[in] CBLAS_INT` number of rows in the matrix `A`.
223223
- **N**: `[in] CBLAS_INT` number of columns in the matrix `A`.
@@ -231,7 +231,7 @@ The function accepts the following arguments:
231231
- **strideY**: `[in] CBLAS_INT` stride length for `Y`.
232232
233233
```c
234-
void c_dgemv( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY )
234+
void c_dgemv( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY )
235235
```
236236

237237
#### c_dgemv_ndarray( trans, M, N, alpha, \*A, sa1, sa2, oa, \*X, sx, ox, beta, \*Y, sy, oy )

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
{{alias}}( ord, trans, M, N, α, A, lda, x, sx, β, y, sy )
2+
{{alias}}( order, trans, M, N, α, A, lda, x, sx, β, y, sy )
33
Performs one of the matrix-vector operations `y = α*A*x + β*y` or
44
`y = α*A**T*x + β*y`, where `α` and `β` are scalars, `x` and `y` are
55
vectors, and `A` is an `M` by `N` matrix.
@@ -13,7 +13,7 @@
1313

1414
Parameters
1515
----------
16-
ord: string
16+
order: string
1717
Row-major (C-style) or column-major (Fortran-style) order.
1818

1919
trans: string

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Performs one of the matrix-vector operations `Y = α*A*X + β*Y` or `Y = α*A^T*X + β*Y`, where `α` and `β` are scalars, `X` and `Y` are vectors, and `A` is an `M` by `N` matrix.
3636
*/
37-
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY );
3838

3939
/**
4040
* Performs one of the matrix-vector operations `Y = α*A*X + β*Y` or `Y = α*A^T*X + β*Y`, where `α` and `β` are scalars, `X` and `Y` are vectors, and `A` is an `M` by `N` matrix using alternative indexing semantics.

lib/node_modules/@stdlib/blas/base/dgemv/include/stdlib/blas/base/dgemv_cblas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extern "C" {
3434
/**
3535
* Performs one of the matrix-vector operations `Y = α*A*X + β*Y` or `Y = α*A^T*X + β*Y`, where `α` and `β` are scalars, `X` and `Y` are vectors, and `A` is an `M` by `N` matrix.
3636
*/
37-
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY );
37+
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY );
3838

3939
/**
4040
* Performs one of the matrix-vector operations `Y = α*A*X + β*Y` or `Y = α*A^T*X + β*Y`, where `α` and `β` are scalars, `X` and `Y` are vectors, and `A` is an `M` by `N` matrix using alternative indexing semantics.

lib/node_modules/@stdlib/blas/base/dgemv/src/addon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
4242

4343
STDLIB_NAPI_ARGV( env, info, argv, argc, 12 );
4444

45-
STDLIB_NAPI_ARGV_INT32( env, order, argv, 0 );
45+
STDLIB_NAPI_ARGV_INT32( env, layout, argv, 0 );
4646
STDLIB_NAPI_ARGV_INT32( env, trans, argv, 1 );
4747

4848
STDLIB_NAPI_ARGV_INT64( env, M, argv, 2 );
@@ -61,18 +61,18 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
6161
xlen = M;
6262
ylen = N;
6363
}
64-
if ( order == CblasColMajor ) {
64+
if ( layout == CblasColMajor ) {
6565
sa1 = 1;
6666
sa2 = LDA;
67-
} else { // order === CblasRowMajor
67+
} else { // layout === CblasRowMajor
6868
sa1 = LDA;
6969
sa2 = 1;
7070
}
7171
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, X, xlen, strideX, argv, 7 );
7272
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY( env, Y, ylen, strideY, argv, 10 );
7373
STDLIB_NAPI_ARGV_STRIDED_FLOAT64ARRAY2D( env, A, M, N, sa1, sa2, argv, 5 );
7474

75-
API_SUFFIX(c_dgemv)( order, trans, M, N, alpha, A, LDA, X, strideX, beta, Y, strideY );
75+
API_SUFFIX(c_dgemv)( layout, trans, M, N, alpha, A, LDA, X, strideX, beta, Y, strideY );
7676

7777
return NULL;
7878
}

lib/node_modules/@stdlib/blas/base/dgemv/src/dgemv.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* Performs one of the matrix-vector operations `Y = α*A*X + β*Y` or `Y = α*A^T*X + β*Y`, where `α` and `β` are scalars, `X` and `Y` are vectors, and `A` is an `M` by `N` matrix.
2626
*
27-
* @param order storage layout
27+
* @param layout storage layout
2828
* @param trans specifies whether `A` should be transposed, conjugate-transposed, or not transposed
2929
* @param M number of rows in the matrix `A`
3030
* @param N number of columns in the matrix `A`
@@ -38,7 +38,7 @@
3838
* @param strideY `Y` stride length
3939
* @return output value
4040
*/
41-
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY ) {
41+
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, double *Y, const CBLAS_INT strideY ) {
4242
CBLAS_INT vala;
4343
CBLAS_INT xlen;
4444
CBLAS_INT ylen;
@@ -49,8 +49,8 @@ void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans,
4949
CBLAS_INT v;
5050

5151
// Perform input argument validation...
52-
if ( order != CblasRowMajor && order != CblasColMajor ) {
53-
c_xerbla( 1, "c_dgemv", "Error: invalid argument. First argument must be a valid order. Value: `%d`.", order );
52+
if ( layout != CblasRowMajor && layout != CblasColMajor ) {
53+
c_xerbla( 1, "c_dgemv", "Error: invalid argument. First argument must be a valid storage layout. Value: `%d`.", layout );
5454
return;
5555
}
5656
if ( trans != CblasTrans && trans != CblasConjTrans && trans != CblasNoTrans ) {
@@ -73,7 +73,7 @@ void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans,
7373
c_xerbla( 12, "c_dgemv", "Error: invalid argument. Twelfth argument must be a nonzero. Value: `%d`.", strideY );
7474
return;
7575
}
76-
if ( order == CblasColMajor ) {
76+
if ( layout == CblasColMajor ) {
7777
v = M;
7878
} else {
7979
v = N;
@@ -99,10 +99,10 @@ void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans,
9999
xlen = M;
100100
ylen = N;
101101
}
102-
if ( order == CblasColMajor ) {
102+
if ( layout == CblasColMajor ) {
103103
sa1 = 1;
104104
sa2 = LDA;
105-
} else { // order === CblasRowMajor
105+
} else { // layout === CblasRowMajor
106106
sa1 = LDA;
107107
sa2 = 1;
108108
}

lib/node_modules/@stdlib/blas/base/dgemv/src/dgemv_cblas.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* Performs one of the matrix-vector operations `y = α*A*x + β*y` or `y = α*A^T*x + β*y`, where `α` and `β` are scalars, `x` and `y` are vectors, and `A` is an `M` by `N` matrix.
2525
*
26-
* @param order storage layout
26+
* @param layout storage layout
2727
* @param trans specifies whether `A` should be transposed, conjugate-transposed, or not transposed
2828
* @param M number of rows in the matrix `A`
2929
* @param N number of columns in the matrix `A`
@@ -37,6 +37,6 @@
3737
* @param strideY `y` stride length
3838
* @return output value
3939
*/
40-
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT order, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, const double *Y, const CBLAS_INT strideY ) {
41-
API_SUFFIX(cblas_dgemv)( order, trans, M, N, alpha, A, LDA, X, strideX, beta, Y, strideY );
40+
void API_SUFFIX(c_dgemv)( const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const double alpha, const double *A, const CBLAS_INT LDA, const double *X, const CBLAS_INT strideX, const double beta, const double *Y, const CBLAS_INT strideY ) {
41+
API_SUFFIX(cblas_dgemv)( layout, trans, M, N, alpha, A, LDA, X, strideX, beta, Y, strideY );
4242
}

0 commit comments

Comments
 (0)