Skip to content

Commit 2cadbf7

Browse files
committed
Auto-generated commit
1 parent a248337 commit 2cadbf7

File tree

6 files changed

+22
-25
lines changed

6 files changed

+22
-25
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-03-31)
7+
## Unreleased (2025-04-01)
88

99
<section class="reverts">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`a81d6c3`](https://github.com/stdlib-js/stdlib/commit/a81d6c35d11075753c928e38258023266932486e) - **chore:** replace manual `for` loop in examples [(#6488)](https://github.com/stdlib-js/stdlib/pull/6488) _(by Harsh)_
2526
- [`c569d0f`](https://github.com/stdlib-js/stdlib/commit/c569d0ff888bc76a9980f5edb6e1c6f462d6e508) - **bench:** update random value generation [(#6380)](https://github.com/stdlib-js/stdlib/pull/6380) _(by Harsh, Philipp Burckhardt)_
2627
- [`c13062e`](https://github.com/stdlib-js/stdlib/commit/c13062e5b90cbe28ec62f0b690211bd14b626cf3) - **style:** update to use tabs for indentation _(by Philipp Burckhardt)_
2728
- [`ff25e13`](https://github.com/stdlib-js/stdlib/commit/ff25e1324e1507cc076078e82badce7fdf7915f6) - **docs:** remove excess whitespace _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Ryan Seal <splrk@users.noreply.github.com>
132132
Rylan Yang <137365285+rylany27@users.noreply.github.com>
133133
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
134134
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
135+
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>
136+
Sai Avinash <120403424+nasarobot@users.noreply.github.com>
135137
Sai Srikar Dumpeti <80447788+the-r3aper7@users.noreply.github.com>
136138
Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
137139
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
@@ -169,6 +171,7 @@ Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
169171
ditsu <170345142+ditsus@users.noreply.github.com>
170172
ekambains <bainsinbusiness@gmail.com>
171173
fadiothman22 <48636283+fadiothman22@users.noreply.github.com>
174+
lohithganni <116790357+lohithganni@users.noreply.github.com>
172175
olenkabilonizhka <62379231+olenkabilonizhka@users.noreply.github.com>
173176
pranav-1720 <123018993+pranav-1720@users.noreply.github.com>
174177
rahulrangers <127782777+rahulrangers@users.noreply.github.com>

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,17 @@ v = minabs( NaN, 3.14 );
116116
<!-- eslint no-undef: "error" -->
117117

118118
```javascript
119-
var randu = require( '@stdlib/random-base-randu' );
119+
var uniform = require( '@stdlib/random-array-uniform' );
120+
var logEachMap = require( '@stdlib/console-log-each-map' );
120121
var minabs = require( '@stdlib/math-base-special-minabs' );
121122

122-
var x;
123-
var y;
124-
var v;
125-
var i;
123+
var opts = {
124+
'dtype': 'float64'
125+
};
126+
var x = uniform( 100, -500.0, 500.0, opts );
127+
var y = uniform( 100, -500.0, 500.0, opts );
126128

127-
for ( i = 0; i < 100; i++ ) {
128-
x = ( randu()*1000.0 ) - 500.0;
129-
y = ( randu()*1000.0 ) - 500.0;
130-
v = minabs( x, y );
131-
console.log( 'minabs(%d,%d) = %d', x, y, v );
132-
}
129+
logEachMap( 'minabs(%0.4f,%0.4f) = %0.4f', x, y, minabs );
133130
```
134131

135132
</section>

examples/index.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@
1818

1919
'use strict';
2020

21-
var randu = require( '@stdlib/random-base-randu' );
21+
var uniform = require( '@stdlib/random-array-uniform' );
22+
var logEachMap = require( '@stdlib/console-log-each-map' );
2223
var minabs = require( './../lib' );
2324

24-
var x;
25-
var y;
26-
var v;
27-
var i;
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = uniform( 100, -500.0, 500.0, opts );
29+
var y = uniform( 100, -500.0, 500.0, opts );
2830

29-
for ( i = 0; i < 100; i++ ) {
30-
x = ( randu()*1000.0 ) - 500.0;
31-
y = ( randu()*1000.0 ) - 500.0;
32-
v = minabs( x, y );
33-
console.log( 'minabs(%d,%d) = %d', x, y, v );
34-
}
31+
logEachMap( 'minabs(%0.4f,%0.4f) = %0.4f', x, y, minabs );

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
"@stdlib/utils-library-manifest": "^0.2.2"
4747
},
4848
"devDependencies": {
49+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
4950
"@stdlib/constants-float64-pinf": "^0.2.2",
5051
"@stdlib/math-base-assert-is-nan": "^0.2.2",
5152
"@stdlib/math-base-assert-is-positive-zero": "^0.2.2",
5253
"@stdlib/random-array-uniform": "^0.2.1",
53-
"@stdlib/random-base-randu": "^0.2.1",
5454
"@stdlib/utils-try-require": "^0.2.2",
5555
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5656
"istanbul": "^0.4.1",

0 commit comments

Comments
 (0)