Skip to content

Commit 580a43f

Browse files
committed
chore: minor clean-up
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6aeb7d0 commit 580a43f

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

lib/node_modules/@stdlib/math/base/special/rcbrt/benchmark/c/cephes/benchmark.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ static double benchmark( void ) {
104104
x[ i ] = rand_double() * 100000.0;
105105
}
106106

107-
108107
t = tic();
109108
for ( i = 0; i < ITERATIONS; i++ ) {
110109
y = 1.0 / cbrt( x[ i%100 ] );

lib/node_modules/@stdlib/math/base/special/round/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static double benchmark( void ) {
9898
int i;
9999

100100
for ( i = 0; i < 100; i++ ) {
101-
x[ i ] = random_uniform( -500.0, 500.0 );;
101+
x[ i ] = random_uniform( -500.0, 500.0 );
102102
}
103103

104104
t = tic();

lib/node_modules/@stdlib/math/base/special/roundf/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static double benchmark( void ) {
102102

103103
t = tic();
104104
for ( i = 0; i < ITERATIONS; i++ ) {
105-
y = roundf( x[ i%100 ] );
105+
y = stdlib_base_roundf( x[ i%100 ] );
106106
if ( y != y ) {
107107
printf( "should not return NaN\n" );
108108
break;

lib/node_modules/@stdlib/math/base/special/rsqrtf/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
* @return reciprocal square root
2727
*
2828
* @example
29-
* float y = stdlib_base_rsqrtf( 4.0 );
29+
* float y = stdlib_base_rsqrtf( 4.0f );
3030
* // returns 0.5
3131
*/
3232
float stdlib_base_rsqrtf( const float x ) {
33-
return 1.0 / stdlib_base_sqrt( x );
33+
return 1.0f / stdlib_base_sqrtf( x );
3434
}

lib/node_modules/@stdlib/math/base/special/sec/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ limitations under the License.
3434
var sec = require( '@stdlib/math/base/special/sec' );
3535
```
3636

37-
## sec( x )
37+
#### sec( x )
3838

3939
Evaluates the [secant][trigonometric-functions] of `x` (in radians).
4040

lib/node_modules/@stdlib/math/base/special/secf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Evaluates the [secant][trigonometric-functions] of a single-precision floating-p
117117
float out = stdlib_base_secf( 0.0f );
118118
// returns 1.0f
119119

120-
out = stdlib_base_cos( 3.1415927410125732f );
120+
out = stdlib_base_secf( 3.1415927410125732f );
121121
// returns -1.0f
122122
```
123123

lib/node_modules/@stdlib/math/base/special/secf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @return secant
2727
*
2828
* @example
29-
* float y = stdlib_base_sec( 3.1415927410125732f );
29+
* float y = stdlib_base_secf( 3.1415927410125732f );
3030
* // returns -1.0f
3131
*/
3232
float stdlib_base_secf( const float x ) {

lib/node_modules/@stdlib/math/base/special/sici/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface Sici {
3838
*
3939
* @example
4040
* var v = sici( 0.0 );
41-
* // returns [ 0.0, -Infinity ]
41+
* // returns [ 0.0, -Infinity ]
4242
*
4343
* @example
4444
* var v = sici( -9.0 );
@@ -85,7 +85,7 @@ interface Sici {
8585
*
8686
* @example
8787
* var v = sici( 0.0 );
88-
* // returns [ 0.0, -Infinity ]
88+
* // returns [ 0.0, -Infinity ]
8989
*
9090
* @example
9191
* var v = sici( -9.0 );

0 commit comments

Comments
 (0)