Skip to content

Commit 3eb6511

Browse files
committed
fix: added suggested changes
--- 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: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - 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 2032173 commit 3eb6511

4 files changed

Lines changed: 7 additions & 12 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,13 @@ double stdlib_stats_dmaxsorted( const struct ndarray *arrays[] );
189189
#include <stdio.h>
190190

191191
int main( void ) {
192+
<<<<<<< HEAD
192193
// Create a sorted data buffer:
193194
const double data[] = { -4.0, -2.0, 1.0, 3.0, 5.0, 7.0 };
195+
=======
196+
// Create a sorted data buffer (ascending):
197+
const double data[] = { -8.0, -6.0, -4.0, -2.0, 1.0, 3.0, 5.0, 7.0 };
198+
>>>>>>> 91f801528eb (fix: added suggested changes)
194199
195200
// Specify the number of array dimensions:
196201
const int64_t ndims = 1;

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <stdlib.h>
2727
#include <stdio.h>
2828
#include <math.h>
29-
#include <time.h>
3029
#include <sys/time.h>
3130

3231
#define NAME "dmaxsorted"
@@ -83,15 +82,6 @@ static double tic( void ) {
8382
return (double)now.tv_sec + (double)now.tv_usec/1.0e6;
8483
}
8584

86-
/**
87-
* Generates a random number on the interval [0,1).
88-
*
89-
* @return random number
90-
*/
91-
static double rand_double( void ) {
92-
int r = rand();
93-
return (double)r / ( (double)RAND_MAX + 1.0 );
94-
}
9585

9686
/**
9787
* Runs a benchmark.

lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2026 The Stdlib Authors.
4+
* Copyright (c) 2025 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/stats/base/ndarray/dmaxsorted/test/test.main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
2525
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
2626
var Float64Array = require( '@stdlib/array/float64' );
2727
var ndarray = require( '@stdlib/ndarray/base/ctor' );
28-
var dmaxsorted = require( './../lib' );
28+
var dmaxsorted = require( './../lib/main.js' );
2929

3030

3131
// FUNCTIONS //

0 commit comments

Comments
 (0)