Skip to content

Commit d615b5f

Browse files
fix: zdotu_cblas
--- 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 0b37a88 commit d615b5f

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/node_modules/@stdlib/blas/base/zdotu/examples/c/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#/
22
# @license Apache-2.0
33
#
4-
# Copyright (c) 2020 The Stdlib Authors.
4+
# Copyright (c) 2026 The Stdlib Authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/blas/base/zdotu/src/zdotu_cblas.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "stdlib/blas/base/zdotu.h"
2020
#include "stdlib/blas/base/zdotu_cblas.h"
2121
#include "stdlib/blas/base/shared.h"
22+
#include "stdlib/complex/float64/ctor.h"
2223
#include "stdlib/strided/base/min_view_buffer_index.h"
2324

2425
/**
@@ -48,7 +49,10 @@ void API_SUFFIX(c_zdotu)( const CBLAS_INT N, const void *X, const CBLAS_INT stri
4849
* @param dot output variable reference
4950
*/
5051
void API_SUFFIX(c_zdotu_ndarray)( const CBLAS_INT N, const void *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, const void *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY, void *dot ) {
51-
X += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer
52-
Y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer
53-
API_SUFFIX(cblas_zdotu_sub)( N, X, strideX, Y, strideY, dot );
52+
const stdlib_complex128_t *x = (const stdlib_complex128_t *)X;
53+
const stdlib_complex128_t *y = (const stdlib_complex128_t *)Y;
54+
55+
x += stdlib_strided_min_view_buffer_index( N, strideX, offsetX ); // adjust array pointer
56+
y += stdlib_strided_min_view_buffer_index( N, strideY, offsetY ); // adjust array pointer
57+
API_SUFFIX(cblas_zdotu_sub)( N, (const void *)x, strideX, (const void *)y, strideY, dot );
5458
}

0 commit comments

Comments
 (0)