Skip to content

Commit a20d9bf

Browse files
chore: updated comments
--- 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: 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: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - 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 --- --- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: failed ---
1 parent 277024e commit a20d9bf

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/blas/ext/base/ssort2hp/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ stdlib_strided_ssort2hp( 4, 1.0f, x, 1, y, 1 );
226226
The function accepts the following arguments:
227227
228228
- **N**: `[in] CBLAS_INT` number of indexed elements.
229-
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `x` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `x` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
229+
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `X` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `X` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
230230
- **X**: `[inout] float*` first input array.
231231
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
232232
- **Y**: `[inout] float*` second input array.
233233
- **strideY**: `[in] CBLAS_INT` stride length for `Y`.
234234
235235
```c
236-
stdlib_strided_ssort2hp( const CBLAS_INT N, const float order, float *X, CBLAS_INT strideX, float *Y, CBLAS_INT strideY );
236+
stdlib_strided_ssort2hp( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX, float *Y, const CBLAS_INT strideY );
237237
```
238238

239239
<!--lint disable maximum-heading-length-->
@@ -254,7 +254,7 @@ stdlib_strided_ssort2hp_ndarray( 4, 1.0f, x, 1, 0, y, 1, 0 );
254254
The function accepts the following arguments:
255255
256256
- **N**: `[in] CBLAS_INT` number of indexed elements.
257-
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `x` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `x` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
257+
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array `X` is sorted in **decreasing** order. If `order > 0.0`, the input strided array `X` is sorted in **increasing** order. If `order == 0.0`, the input strided arrays are left unchanged.
258258
- **X**: `[inout] float*` first input array.
259259
- **strideX**: `[in] CBLAS_INT` stride length for `X`.
260260
- **offsetX**: `[in] CBLAS_INT` starting index for `X`.
@@ -263,7 +263,7 @@ The function accepts the following arguments:
263263
- **offsetY**: `[in] CBLAS_INT` starting index for `Y`.
264264
265265
```c
266-
stdlib_strided_ssort2hp_ndarray( const CBLAS_INT N, const float order, float *X, CBLAS_INT strideX, CBLAS_INT offsetX, float *Y, CBLAS_INT strideY, CBLAS_INT offsetY );
266+
stdlib_strided_ssort2hp_ndarray( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY );
267267
```
268268

269269
</section>

lib/node_modules/@stdlib/blas/ext/base/ssort2hp/benchmark/c/benchmark.unsorted_random.length.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static double tic( void ) {
8282
*
8383
* @return random number
8484
*/
85-
static double rand_float( void ) {
85+
static float rand_float( void ) {
8686
int r = rand();
8787
return (float)r / ( (float)RAND_MAX + 1.0f );
8888
}

lib/node_modules/@stdlib/blas/ext/base/ssort2hp/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void API_SUFFIX(stdlib_strided_ssort2hp)( const CBLAS_INT N, const float order,
6060
* @param strideY stride length for `Y`
6161
* @param offsetY starting index for `Y`
6262
*/
63-
void API_SUFFIX(stdlib_strided_ssort2hp_ndarray)( const CBLAS_INT N, const float order, float *X, CBLAS_INT strideX, CBLAS_INT offsetX, float *Y, CBLAS_INT strideY, CBLAS_INT offsetY ) {
63+
void API_SUFFIX(stdlib_strided_ssort2hp_ndarray)( const CBLAS_INT N, const float order, float *X, const CBLAS_INT strideX, const CBLAS_INT offsetX, float *Y, const CBLAS_INT strideY, const CBLAS_INT offsetY ) {
6464
CBLAS_INT parent;
6565
CBLAS_INT child;
6666
CBLAS_INT sx;
@@ -82,8 +82,8 @@ void API_SUFFIX(stdlib_strided_ssort2hp_ndarray)( const CBLAS_INT N, const float
8282
}
8383
// For a positive stride, sorting in decreasing order is equivalent to providing a negative stride and sorting in increasing order, and, for a negative stride, sorting in decreasing order is equivalent to providing a positive stride and sorting in increasing order...
8484
if ( order < 0.0f ) {
85-
sx = strideX * -1;
86-
sy = strideY * -1;
85+
sx = -strideX;
86+
sy = -strideY;
8787
ox = offsetX - ( (N-1) * sx );
8888
oy = offsetY - ( (N-1) * sy );
8989
} else {

0 commit comments

Comments
 (0)