Skip to content

Commit a9fee3f

Browse files
committed
Rename function
1 parent 6e1f76f commit a9fee3f

File tree

2 files changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/ctor

2 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/ndarray/ctor/include/stdlib/ndarray/ctor.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ int8_t stdlib_ndarray_iget_int8( const struct ndarray *arr, const int64_t idx,in
386386
/**
387387
* Sets an ndarray data element specified by a byte array pointer.
388388
*/
389-
int8_t stdlib_ndarray_set_ptr( const struct ndarray *arr, const uint8_t *idx, const void *v );
389+
int8_t stdlib_ndarray_set_ptr_value( const struct ndarray *arr, const uint8_t *idx, const void *v );
390390

391391
/**
392392
* Sets a double-precision floating-point ndarray data element specified by a byte array pointer.

lib/node_modules/@stdlib/ndarray/ctor/src/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ int8_t stdlib_ndarray_iget_int8( const struct ndarray *arr, const int64_t idx,in
918918
* @param v value to set
919919
* @return status code
920920
*/
921-
int8_t stdlib_ndarray_set_ptr( const struct ndarray *arr, const uint8_t *idx, const void *v ) {
921+
int8_t stdlib_ndarray_set_ptr_value( const struct ndarray *arr, const uint8_t *idx, const void *v ) {
922922
switch ( arr->dtype ) {
923923
case STDLIB_NDARRAY_FLOAT64:
924924
*(double *)idx = *(double *)v;
@@ -1132,7 +1132,7 @@ int8_t stdlib_ndarray_set( const struct ndarray *arr, const int64_t *sub, const
11321132
if ( idx == NULL ) {
11331133
return -1;
11341134
}
1135-
return stdlib_ndarray_set_ptr( arr, idx, v );
1135+
return stdlib_ndarray_set_ptr_value( arr, idx, v );
11361136
}
11371137

11381138
/**
@@ -1353,7 +1353,7 @@ int8_t stdlib_ndarray_iset( const struct ndarray *arr, const int64_t idx, const
13531353
if ( ind == NULL ) {
13541354
return -1;
13551355
}
1356-
return stdlib_ndarray_set_ptr( arr, ind, v );
1356+
return stdlib_ndarray_set_ptr_value( arr, ind, v );
13571357
}
13581358

13591359
/**

0 commit comments

Comments
 (0)