Skip to content

Commit 9f23af6

Browse files
committed
Auto-generated commit
1 parent 2a31305 commit 9f23af6

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

CHANGELOG.md

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

7-
## Unreleased (2025-04-07)
7+
## Unreleased (2025-04-11)
88

99
<section class="features">
1010

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

2323
<details>
2424

25+
- [`0395909`](https://github.com/stdlib-js/stdlib/commit/03959095fb9ffbe34ca9603b27c5204ce82d8c89) - **docs:** replace manual `for` loop in examples [(#6638)](https://github.com/stdlib-js/stdlib/pull/6638) _(by Harsh)_
2526
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_
2627
- [`a2133de`](https://github.com/stdlib-js/stdlib/commit/a2133de85c6de60892a54b387dbf7bd1ad58e0c8) - **feat:** add `math/base/special/heavisidef` [(#3374)](https://github.com/stdlib-js/stdlib/pull/3374) _(by Vivek Maurya, Athan Reines, stdlib-bot)_
2728

@@ -35,9 +36,10 @@
3536

3637
### Contributors
3738

38-
A total of 3 people contributed to this release. Thank you to the following contributors:
39+
A total of 4 people contributed to this release. Thank you to the following contributors:
3940

4041
- Athan Reines
42+
- Harsh
4143
- Karan Anand
4244
- Vivek Maurya
4345

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Joris Labie <joris.labie1@gmail.com>
7777
Justin Dennison <justin1dennison@gmail.com>
7878
Justyn Shelby <96994781+ShelbyJustyn@users.noreply.github.com>
7979
Karan Anand <anandkarancompsci@gmail.com>
80+
Karan Yadav <77043443+karanBRAVO@users.noreply.github.com>
8081
Karthik Prakash <116057817+skoriop@users.noreply.github.com>
8182
Kaushikgtm <162317291+Kaushikgtm@users.noreply.github.com>
8283
Kavyansh-Bagdi <153486713+Kavyansh-Bagdi@users.noreply.github.com>
@@ -86,6 +87,7 @@ Krishnendu Das <86651039+itskdhere@users.noreply.github.com>
8687
Kshitij-Dale <152467202+Kshitij-Dale@users.noreply.github.com>
8788
Lovelin Dhoni J B <100030865+lovelindhoni@users.noreply.github.com>
8889
MANI <77221000+Eternity0207@users.noreply.github.com>
90+
Mahfuza Humayra Mohona <mhmohona@gmail.com>
8991
Manik Sharma <maniksharma.rke@gmail.com>
9092
Manvith M <148960168+manvith2003@users.noreply.github.com>
9193
Marcus Fantham <mfantham@users.noreply.github.com>
@@ -118,6 +120,7 @@ Prashant Kumar Yadav <144602492+0PrashantYadav0@users.noreply.github.com>
118120
PrathamBhamare <164445568+PrathamBhamare@users.noreply.github.com>
119121
Pratik Singh <97464067+Pratik772846@users.noreply.github.com>
120122
Pratyush Kumar Chouhan <pratyushkumar0308@gmail.com>
123+
Pravesh Kunwar <praveshkunwar04@gmail.com>
121124
Priyansh Prajapati <88396544+itsspriyansh@users.noreply.github.com>
122125
Priyanshu Agarwal <113460573+AgPriyanshu18@users.noreply.github.com>
123126
Pulkit Gupta <65711278+pulkitgupta2@users.noreply.github.com>

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,16 @@ v = heavisidef( 0.0, 'right-continuous' );
181181
<!-- eslint no-undef: "error" -->
182182

183183
```javascript
184-
var linspace = require( '@stdlib/array-base-linspace' );
184+
var uniform = require( '@stdlib/random-array-uniform' );
185+
var logEachMap = require( '@stdlib/console-log-each-map' );
185186
var heavisidef = require( '@stdlib/math-base-special-heavisidef' );
186187

187-
var x = linspace( -10.0, 10.0, 101 );
188+
var opts = {
189+
'dtype': 'float32'
190+
};
191+
var x = uniform( 101, -10.0, 10.0, opts );
188192

189-
var i;
190-
for ( i = 0; i < x.length; i++ ) {
191-
console.log( 'H(%d) = %f', x[ i ], heavisidef( x[ i ] ) );
192-
}
193+
logEachMap( 'H(%0.4f) = %0.4f', x, heavisidef );
193194
```
194195

195196
</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 heavisidef = require( './../lib' );
2324

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

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@stdlib/math-base-assert-is-nanf": "^0.2.2"
4141
},
4242
"devDependencies": {
43-
"@stdlib/array-base-linspace": "^0.2.2",
43+
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
4444
"@stdlib/constants-float32-eps": "^0.2.2",
4545
"@stdlib/constants-float32-ninf": "^0.2.2",
4646
"@stdlib/constants-float32-pinf": "^0.2.2",

0 commit comments

Comments
 (0)