Skip to content

Commit 0d52a8a

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: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - 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: passed - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: passed - task: run_c_benchmarks status: passed - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: passed - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 095586c commit 0d52a8a

File tree

17 files changed

+18
-20
lines changed

17 files changed

+18
-20
lines changed

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

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

105105
t = tic();
106106
for ( i = 0; i < ITERATIONS; i++ ) {
107-
x = v[ i % 100 ] + v[ i % 100 ] *I;
107+
x = v[ i % 100 ] + v[ i % 100 ] *I;
108108
y = stdlib_base_ceil( creal( x ) ) + stdlib_base_ceil( cimag( x ) )*I;
109109
if ( creal( y ) != creal( y ) ) {
110110
printf( "unexpected result\n" );

lib/node_modules/@stdlib/math/base/special/kernel-log1p/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var polyvalQ = require( './polyval_q.js' );
7474
* We use a special Reme algorithm on \\(\[0,0.1716]\\) to generate a polynomial of degree \\(14\\) to approximate \\(R\\). The maximum error of this polynomial approximation is bounded by \\(2^{-58.45}\\). In other words,
7575
*
7676
* ```tex
77-
* R(z) ~ L_{g1} s^2 + L_{g2} s^4 + L_{g3} s^6 + L_{g4} s^8 + L_{g5} s^{10} + L_{g6} s^{12} + L_{g7} s^{14}
77+
* R(z) ~ L_{g1} s^2 + L_{g2} s^4 + L_{g3} s^6 + L_{g4} s^8 + L_{g5} s^{10} + L_{g6} s^{12} + L_{g7} s^{14}
7878
* ```
7979
*
8080
* where the values of \\(L_{g1}\\) to \\(L_{g7}\\) are the polynomial coefficients used in the program below and

lib/node_modules/@stdlib/math/base/special/kernel-log1p/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static double polyval_q( const double x ) {
111111
* We use a special Reme algorithm on \\(\[0,0.1716]\\) to generate a polynomial of degree \\(14\\) to approximate \\(R\\). The maximum error of this polynomial approximation is bounded by \\(2^{-58.45}\\). In other words,
112112
*
113113
* ```tex
114-
* R(z) ~ L_{g1} s^2 + L_{g2} s^4 + L_{g3} s^6 + L_{g4} s^8 + L_{g5} s^{10} + L_{g6} s^{12} + L_{g7} s^{14}
114+
* R(z) ~ L_{g1} s^2 + L_{g2} s^4 + L_{g3} s^6 + L_{g4} s^8 + L_{g5} s^{10} + L_{g6} s^{12} + L_{g7} s^{14}
115115
* ```
116116
*
117117
* where the values of \\(L_{g1}\\) to \\(L_{g7}\\) are the polynomial coefficients used in the program below and

lib/node_modules/@stdlib/stats/base/dists/exponential/logcdf/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static void print_version( void ) {
3838
/**
3939
* Prints the TAP summary.
4040
*
41-
* @param total total number of tests
41+
* @param total total number of tests
4242
* @param passing total number of passing tests
4343
*/
4444
static void print_summary( int total, int passing ) {

lib/node_modules/@stdlib/stats/base/dists/geometric/pmf/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ double stdlib_base_dists_geometric_pmf( const double x, const double p );
204204
#include "stdlib/math/base/special/round.h"
205205
#include <stdlib.h>
206206
#include <stdio.h>
207-
#include <math.h>
208207
209208
static double random_uniform( const double min, const double max ) {
210209
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );

lib/node_modules/@stdlib/stats/base/dists/geometric/pmf/binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@
167167
], # end actions
168168
}, # end target copy_addon
169169
], # end targets
170-
}
170+
}

lib/node_modules/@stdlib/stats/base/dists/geometric/pmf/examples/c/example.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "stdlib/math/base/special/round.h"
2121
#include <stdlib.h>
2222
#include <stdio.h>
23-
#include <math.h>
2423

2524
static double random_uniform( const double min, const double max ) {
2625
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );

lib/node_modules/@stdlib/stats/base/dists/geometric/pmf/src/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
/**
2525
* Returns the probability mass function of a geometric distribution.
2626
*
27-
* @param x input value
28-
* @param p success probability
29-
* @return evaluated PMF
27+
* @param x input value
28+
* @param p success probability
29+
* @return evaluated PMF
3030
*
3131
* @example
3232
* double y = stdlib_base_dists_geometric_pmf( 4.0, 0.3 );

lib/node_modules/@stdlib/stats/base/dists/rayleigh/logpdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ for ( i = 0; i < 10; i++ ) {
145145
x = randu() * 10.0;
146146
sigma = randu() * 10.0;
147147
y = logpdf( x, sigma );
148-
console.log( 'x: %d, σ: %d, f(x;σ): %d', x.toFixed( 4 ), sigma.toFixed( 4 ), y.toFixed( 4 ) );
148+
console.log( 'x: %d, σ: %d, ln(f(x;σ)): %d', x.toFixed( 4 ), sigma.toFixed( 4 ), y.toFixed( 4 ) );
149149
}
150150
```
151151

lib/node_modules/@stdlib/stats/base/dists/rayleigh/logpdf/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bench( pkg, function benchmark( b ) {
4343
x = new Float64Array( len );
4444
sigma = new Float64Array( len );
4545
for ( i = 0; i < len; i++ ) {
46-
x[ i ] = ( randu() * 100.0 ) - 100.0;
46+
x[ i ] = randu() * 100.0;
4747
sigma[ i ] = ( randu() * 20.0 ) + EPS;
4848
}
4949
for ( i = 0; i < b.iterations; i++ ) {

0 commit comments

Comments
 (0)