Skip to content

Commit 8419b2f

Browse files
committed
refactor: variable initialized
--- 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: 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 166bc11 commit 8419b2f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

lib/node_modules/@stdlib/blas/base/cgemv/src/cgemv_ndarray.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
* @return output value
5050
*/
5151
void API_SUFFIX(c_cgemv_ndarray)( const CBLAS_TRANSPOSE trans, const CBLAS_INT M, const CBLAS_INT N, const stdlib_complex64_t alpha, const void *A, const CBLAS_INT strideA1, const CBLAS_INT strideA2, const CBLAS_INT offsetA, const void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, const stdlib_complex64_t beta, void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) {
52-
const stdlib_complex64_t *ap = (stdlib_complex64_t *)A;
53-
const stdlib_complex64_t *xp = (stdlib_complex64_t *)X;
54-
stdlib_complex64_t *yp = (stdlib_complex64_t *)Y;
52+
const stdlib_complex64_t *ap;
53+
const stdlib_complex64_t *xp;
54+
stdlib_complex64_t *yp;
5555
stdlib_complex64_t aval;
5656
stdlib_complex64_t zero;
5757
stdlib_complex64_t one;
@@ -91,6 +91,9 @@ void API_SUFFIX(c_cgemv_ndarray)( const CBLAS_TRANSPOSE trans, const CBLAS_INT M
9191
c_xerbla( 14, "c_cgemv_ndarray", "Error: invalid argument. Fourteenth argument must be a nonzero. Value: `%d`.", strideY );
9292
return;
9393
}
94+
ap = (stdlib_complex64_t *)A;
95+
xp = (stdlib_complex64_t *)X;
96+
yp = (stdlib_complex64_t *)Y;
9497
zero = stdlib_complex64( 0.0, 0.0 );
9598
one = stdlib_complex64( 1.0, 0.0 );
9699
// Check whether we can avoid computation altogether...

0 commit comments

Comments
 (0)