Skip to content

fix: use correct data type of searchElement in C implementation #7463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ extern "C" {
/**
* Returns the first index of a specified search element in a single-precision floating-point strided array.
*/
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX );
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX );

/**
* Returns the first index of a specified search element in a single-precision floating-point strided array using alternative indexing semantics.
*/
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX );

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/blas/ext/base/sindex-of/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @param strideX stride length
* @return index
*/
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX ) {
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX ) {
CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
return API_SUFFIX(stdlib_strided_sindex_of_ndarray)( N, searchElement, X, strideX, ox );
}
Expand All @@ -44,7 +44,7 @@ CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of)( const CBLAS_INT N, const CBLAS_I
* @param offsetX starting index
* @return index
*/
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const CBLAS_INT searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
CBLAS_INT API_SUFFIX(stdlib_strided_sindex_of_ndarray)( const CBLAS_INT N, const float searchElement, const float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX ) {
CBLAS_INT ix;
CBLAS_INT i;

Expand Down