Skip to content

Commit 358b745

Browse files
committed
fix: added requested changes
Signed-off-by: Bhargav Dabhade <bhargava2005dabhade@gmail.com> --- 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: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: missing_dependencies - task: lint_c_benchmarks status: missing_dependencies - 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 db70272 commit 358b745

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int8_t submodes[] = { STDLIB_NDARRAY_INDEX_ERROR };
143143

144144
struct ndarray *x = stdlib_ndarray_allocate( STDLIB_NDARRAY_FLOAT64, (uint8_t *)data, 1, shape, strides, 0, STDLIB_NDARRAY_ROW_MAJOR, STDLIB_NDARRAY_INDEX_ERROR, 1, submodes );
145145

146-
// Compute the absolute range:
146+
// Compute the range:
147147
const struct ndarray *arrays[] = { x };
148148
double v = stdlib_stats_drangeabs( arrays );
149149
// returns 3.0
@@ -225,7 +225,7 @@ int main( void ) {
225225
// Define a list of ndarrays:
226226
const struct ndarray *arrays[] = { x };
227227

228-
// Compute the absolute range:
228+
// Compute the range:
229229
double v = stdlib_stats_drangeabs( arrays );
230230

231231
// Print the result:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void print_results( int iterations, double elapsed ) {
8080
static double tic( void ) {
8181
struct timeval now;
8282
gettimeofday( &now, NULL );
83-
return (double)now.tv_sec + (double)now.tv_usec / 1.0e6;
83+
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
8484
}
8585

8686
/**
@@ -165,7 +165,7 @@ int main( void ) {
165165
int i;
166166
int j;
167167

168-
// Seed the random number generator:
168+
// Use the current time to seed the random number generator:
169169
srand( time( NULL ) );
170170

171171
print_version();

lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/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 absolute range:
66+
// Compute the range:
6767
double v = stdlib_stats_drangeabs( arrays );
6868

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

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

lib/node_modules/@stdlib/stats/base/ndarray/drangeabs/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var addon = require( './../src/addon.node' );
3232
*
3333
* @private
3434
* @param {ArrayLikeObject<Object>} arrays - array-like object containing an input ndarray
35-
* @returns {number} absolute range
35+
* @returns {number} range
3636
*
3737
* @example
3838
* var Float64Array = require( '@stdlib/array/float64' );

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

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

0 commit comments

Comments
 (0)