Skip to content

Commit eb003cb

Browse files
committed
Auto-generated commit
1 parent 28b97a9 commit eb003cb

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

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-24)
7+
## Unreleased (2025-03-25)
88

99
<section class="reverts">
1010

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

2323
<details>
2424

25+
- [`2e1dd43`](https://github.com/stdlib-js/stdlib/commit/2e1dd438de6a412fcb94d486933a61709fd250ab) - **chore:** replace manual `for` loop in examples [(#6351)](https://github.com/stdlib-js/stdlib/pull/6351) _(by Harsh)_
2526
- [`e0d7522`](https://github.com/stdlib-js/stdlib/commit/e0d7522fc5f65cbb7e949eeed509a45b208008ec) - **bench:** update random value generation [(#6327)](https://github.com/stdlib-js/stdlib/pull/6327) _(by Harsh, Athan Reines)_
2627
- [`ff25e13`](https://github.com/stdlib-js/stdlib/commit/ff25e1324e1507cc076078e82badce7fdf7915f6) - **docs:** remove excess whitespace _(by Philipp Burckhardt)_
2728
- [`b0e68c5`](https://github.com/stdlib-js/stdlib/commit/b0e68c5bc8ee985794eb2ea1791c9337cd15fbd0) - **chore:** update to modern benchmark Makefile _(by Philipp Burckhardt)_

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
7878
Karan Anand <119553199+anandkaranubc@users.noreply.github.com>
7979
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8080
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
81+
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
8182
Kohantika Nath <145763549+kohantikanath@users.noreply.github.com>
8283
Krishnam Agarwal <83017176+888krishnam@users.noreply.github.com>
8384
Krishnendu Das <86651039+itskdhere@users.noreply.github.com>

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,16 @@ var y = erfc( NaN );
135135
<!-- eslint no-undef: "error" -->
136136

137137
```javascript
138-
var linspace = require( '@stdlib/array-base-linspace' );
138+
var uniform = require( '@stdlib/random-array-uniform' );
139+
var logEachMap = require( '@stdlib/console-log-each-map' );
139140
var erfc = require( '@stdlib/math-base-special-erfc' );
140141

141-
var x = linspace( -10.0, 10.0, 100 );
142+
var opts = {
143+
'dtype': 'float64'
144+
};
145+
var x = uniform( 100, -10.0, 10.0, opts );
142146

143-
var i;
144-
for ( i = 0; i < x.length; i++ ) {
145-
console.log( 'x: %d, erfc(x): %d', x[ i ], erfc( x[ i ] ) );
146-
}
147+
logEachMap( 'x: %0.4f, erfc(x): %0.4f', x, erfc );
147148
```
148149

149150
</section>

examples/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818

1919
'use strict';
2020

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

24-
var x = linspace( -10.0, 10.0, 100 );
25+
var opts = {
26+
'dtype': 'float64'
27+
};
28+
var x = uniform( 100, -10.0, 10.0, opts );
2529

26-
var i;
27-
for ( i = 0; i < x.length; i++ ) {
28-
console.log( 'x: %d, erfc(x): %d', x[ i ], erfc( x[ i ] ) );
29-
}
30+
logEachMap( 'x: %0.4f, erfc(x): %0.4f', x, erfc );

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"@stdlib/utils-library-manifest": "^0.2.2"
5151
},
5252
"devDependencies": {
53-
"@stdlib/array-base-linspace": "^0.2.2",
53+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
5454
"@stdlib/constants-float64-eps": "^0.2.2",
5555
"@stdlib/fs-read-file": "^0.2.2",
5656
"@stdlib/fs-write-file": "^0.2.2",

0 commit comments

Comments
 (0)