Skip to content

Commit 0a3bfa2

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: na - 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: 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: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent a7bba71 commit 0a3bfa2

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/mean/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var opts = {
4040

4141
// MAIN //
4242

43-
bench( format(' %s::native', pkg ), opts, function benchmark( b ) {
43+
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
4444
var shape1;
4545
var shape2;
4646
var opts;

lib/node_modules/@stdlib/stats/base/ndarray/dmin/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function main() {
102102
var i;
103103

104104
min = 1; // 10^min
105-
max = 6; // 10^min
105+
max = 6; // 10^max
106106

107107
for ( i = min; i <= max; i++ ) {
108108
len = pow( 10, i );

lib/node_modules/@stdlib/stats/base/ndarray/dminabs/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function main() {
102102
var i;
103103

104104
min = 1; // 10^min
105-
max = 6; // 10^min
105+
max = 6; // 10^max
106106

107107
for ( i = min; i <= max; i++ ) {
108108
len = pow( 10, i );

lib/node_modules/@stdlib/stats/base/ndarray/dminabs/examples/c/example.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ int main( void ) {
6363
// Define a list of ndarrays:
6464
const struct ndarray *arrays[] = { x };
6565

66-
// Compute the minimum value:
66+
// Compute the minimum absolute value:
6767
double v = stdlib_stats_dminabs( arrays );
6868

6969
// Print the result:
70-
printf( "min: %lf\n", v );
70+
printf( "minabs: %lf\n", v );
7171

7272
// Free allocated memory:
7373
stdlib_ndarray_free( x );

lib/node_modules/@stdlib/stats/base/ndarray/dminabs/include/stdlib/stats/base/ndarray/dminabs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
#endif
3030

3131
/**
32-
* Computes the minimum value of a one-dimensional double-precision floating-point ndarray.
32+
* Computes the minimum absolute value of a one-dimensional double-precision floating-point ndarray.
3333
*/
3434
double stdlib_stats_dminabs( const struct ndarray *arrays[] );
3535

lib/node_modules/@stdlib/stats/base/ndarray/dminabs/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* Computes the minimum absolute value of a one-dimensional double-precision floating-point ndarray.
2626
*
2727
* @param arrays list containing an input ndarray
28-
* @return minimum value
28+
* @return minimum absolute value
2929
*/
3030
double stdlib_stats_dminabs( const struct ndarray *arrays[] ) {
3131
const struct ndarray *x = arrays[ 0 ];

lib/node_modules/@stdlib/stats/base/ndarray/smax/benchmark/c/benchmark.length.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ static double benchmark( int iterations, int len ) {
113113
double elapsed;
114114
int64_t ndims;
115115
float *data;
116+
double t;
116117
float v;
117-
float t;
118118
int i;
119119

120120
ndims = 1;

lib/node_modules/@stdlib/stats/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ interface Namespace {
385385
* var array = require( '@stdlib/ndarray/array' );
386386
* var zeros = require( '@stdlib/ndarray/zeros' );
387387
*
388-
* var x = array( [ -1.0, 2.0, -3.0 ] )
388+
* var x = array( [ -1.0, 2.0, -3.0 ] );
389389
* var y = zeros( [] );
390390
*
391391
* var out = ns.max.assign( x, y );
@@ -1495,7 +1495,7 @@ interface Namespace {
14951495
* var array = require( '@stdlib/ndarray/array' );
14961496
* var zeros = require( '@stdlib/ndarray/zeros' );
14971497
*
1498-
* var x = array( [ -1.0, 2.0, -3.0 ] )
1498+
* var x = array( [ -1.0, 2.0, -3.0 ] );
14991499
* var y = zeros( [] );
15001500
*
15011501
* function clbk( value ) {

0 commit comments

Comments
 (0)