Skip to content

Commit e48885f

Browse files
fix: improve documentation and remove unnecessary dependencies in ssorthp
--- 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: na - 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 ---
1 parent 6333980 commit e48885f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The function has the following additional parameters:
9494

9595
- **offsetX**: starting index.
9696

97-
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on starting a index. For example, to access only the last three elements:
97+
While [`typed array`][mdn-typed-array] views mandate a view offset based on the underlying buffer, the offset parameter supports indexing semantics based on a starting index. For example, to access only the last three elements:
9898

9999
```javascript
100100
var Float32Array = require( '@stdlib/array/float32' );
@@ -193,15 +193,15 @@ console.log( x );
193193
Sorts a single-precision floating-point strided array using heapsort.
194194

195195
```c
196-
float x[] = { 1.0f, -2.0f, 3.0f, -4.0 };
196+
float x[] = { 1.0f, -2.0f, 3.0f, -4.0f };
197197

198198
stdlib_strided_ssorthp( 2, -1.0f, x, 1 );
199199
```
200200
201201
The function accepts the following arguments:
202202
203203
- **N**: `[in] CBLAS_INT` number of indexed elements.
204-
- **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.
204+
- **order**: `[in] float` sort order. If `order < 0.0`, the input strided array is sorted in **decreasing** order. If `order > 0.0`, the input strided array is sorted in **increasing** order. If `order == 0.0`, the input strided array is left unchanged.
205205
- **X**: `[inout] float*` input array.
206206
- **strideX**: `[in] CBLAS_INT` stride length.
207207

lib/node_modules/@stdlib/blas/ext/base/ssorthp/manifest.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@stdlib/napi/argv-strided-float32array",
4444
"@stdlib/math/base/assert/is-nanf",
4545
"@stdlib/math/base/assert/is-positive-zerof",
46-
"@stdlib/math/base/special/floorf",
4746
"@stdlib/strided/base/stride2offset",
4847
"@stdlib/blas/base/shared"
4948
]
@@ -61,7 +60,6 @@
6160
"dependencies": [
6261
"@stdlib/math/base/assert/is-nanf",
6362
"@stdlib/math/base/assert/is-positive-zerof",
64-
"@stdlib/math/base/special/floorf",
6563
"@stdlib/strided/base/stride2offset",
6664
"@stdlib/blas/base/shared"
6765
]
@@ -79,7 +77,6 @@
7977
"dependencies": [
8078
"@stdlib/math/base/assert/is-nanf",
8179
"@stdlib/math/base/assert/is-positive-zerof",
82-
"@stdlib/math/base/special/floorf",
8380
"@stdlib/strided/base/stride2offset",
8481
"@stdlib/blas/base/shared"
8582
]

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "stdlib/blas/ext/base/ssorthp.h"
2020
#include "stdlib/math/base/assert/is_positive_zerof.h"
2121
#include "stdlib/math/base/assert/is_nanf.h"
22-
#include "stdlib/math/base/special/floorf.h"
2322
#include "stdlib/blas/base/shared.h"
2423
#include "stdlib/strided/base/stride2offset.h"
2524

@@ -91,7 +90,7 @@ void API_SUFFIX(stdlib_strided_ssorthp_ndarray)( const CBLAS_INT N, const float
9190
n = N;
9291

9392
// Specify an initial "parent" index for building the heap:
94-
parent = stdlib_base_floorf( N / 2 );
93+
parent = N / 2;
9594

9695
// Continue looping until the array is sorted...
9796
while ( true ) {

0 commit comments

Comments
 (0)