Skip to content

Commit 280ad40

Browse files
committed
Auto-generated commit
1 parent a3855ac commit 280ad40

File tree

5 files changed

+23
-25
lines changed

5 files changed

+23
-25
lines changed

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-29)
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
- [`07b51a4`](https://github.com/stdlib-js/stdlib/commit/07b51a4996fa515e6a2595413027b1fa670f7503) - **bench:** update random value generation [(#6378)](https://github.com/stdlib-js/stdlib/pull/6378) _(by Harsh, Philipp Burckhardt)_
2627
- [`bf5643f`](https://github.com/stdlib-js/stdlib/commit/bf5643fb1a3f32a60903d8e210f71571e609119f) - **docs:** update related packages sections [(#3404)](https://github.com/stdlib-js/stdlib/pull/3404) _(by stdlib-bot)_
2728
- [`b0e68c5`](https://github.com/stdlib-js/stdlib/commit/b0e68c5bc8ee985794eb2ea1791c9337cd15fbd0) - **chore:** update to modern benchmark Makefile _(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: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,17 @@ var v = maxabsn();
130130
<!-- eslint no-undef: "error" -->
131131

132132
```javascript
133-
var randu = require( '@stdlib/random-base-randu' );
133+
var uniform = require( '@stdlib/random-array-uniform' );
134+
var logEachMap = require( '@stdlib/console-log-each-map' );
134135
var maxabsn = require( '@stdlib/math-base-special-maxabsn' );
135136

136-
var x;
137-
var y;
138-
var v;
139-
var i;
140-
141-
for ( i = 0; i < 100; i++ ) {
142-
x = ( randu()*1000.0 ) - 500.0;
143-
y = ( randu()*1000.0 ) - 500.0;
144-
v = maxabsn( x, y );
145-
console.log( 'maxabs(%d,%d) = %d', x, y, v );
146-
}
137+
var opts = {
138+
'dtype': 'float64'
139+
};
140+
var x = uniform( 100, -500.0, 500.0, opts );
141+
var y = uniform( 100, -500.0, 500.0, opts );
142+
143+
logEachMap( 'maxabs(%0.4f,%0.4f) = %0.4f', x, y, maxabsn );
147144
```
148145

149146
</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 maxabsn = 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 = maxabsn( x, y );
33-
console.log( 'maxabs(%d,%d) = %d', x, y, v );
34-
}
31+
logEachMap( 'maxabs(%0.4f,%0.4f) = %0.4f', x, y, maxabsn );

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
"@stdlib/math-base-special-maxn": "^0.2.2"
4343
},
4444
"devDependencies": {
45+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
4546
"@stdlib/constants-float64-ninf": "^0.2.2",
4647
"@stdlib/math-base-assert-is-nan": "^0.2.2",
4748
"@stdlib/math-base-assert-is-positive-zero": "^0.2.2",
4849
"@stdlib/random-array-uniform": "^0.2.1",
49-
"@stdlib/random-base-randu": "^0.2.1",
5050
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
5151
"istanbul": "^0.4.1",
5252
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",

0 commit comments

Comments
 (0)