Skip to content

Commit e5ed4da

Browse files
committed
Auto-generated commit
1 parent 4ab2e7f commit e5ed4da

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
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-12-17)
7+
## Unreleased (2025-12-18)
88

99
<section class="features">
1010

@@ -141,6 +141,7 @@ A total of 27 issues were closed in this release:
141141

142142
<details>
143143

144+
- [`d5688cf`](https://github.com/stdlib-js/stdlib/commit/d5688cfd992eeaaeefc3f570ddfe516e2a47d217) - **refactor:** use base assertion utility _(by Athan Reines)_
144145
- [`01e0c7f`](https://github.com/stdlib-js/stdlib/commit/01e0c7fe9eadd0c2a0c5bc290675d6a5e325980c) - **docs:** fix empty notes section _(by Athan Reines)_
145146
- [`e3e3d25`](https://github.com/stdlib-js/stdlib/commit/e3e3d254f2f8a639cd59482726b9286ddb31b274) - **chore:** fix JavaScript lint errors [(#8897)](https://github.com/stdlib-js/stdlib/pull/8897) _(by Rohit R Bhat, Athan Reines)_
146147
- [`674526c`](https://github.com/stdlib-js/stdlib/commit/674526cda2e44b320a21bc70855911b76ae74eca) - **chore:** fix JavaScript lint errors [(#8886)](https://github.com/stdlib-js/stdlib/pull/8886) _(by Anoof Mohammed KP, Athan Reines)_

is-almost-equal/lib/main.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020

2121
// MODULES //
2222

23-
var isAlmostEqualComplex64 = require( '@stdlib/complex/float32/base/assert/is-almost-equal' );
24-
var isAlmostEqualComplex128 = require( '@stdlib/complex/float64/base/assert/is-almost-equal' );
25-
var isNumber = require( './../../is-number' ).isPrimitive;
23+
var isAlmostEqualComplex = require( '@stdlib/complex/base/assert/is-almost-equal' );
2624
var isAlmostEqualF64 = require( '@stdlib/number/float64/base/assert/is-almost-equal' );
2725
var isComplexLike = require( './../../is-complex-like' );
26+
var isNumber = require( './../../is-number' ).isPrimitive;
2827

2928

3029
// MAIN //
@@ -71,10 +70,7 @@ function isAlmostEqual( a, b, maxULP ) {
7170
return isAlmostEqualF64( a, b, maxULP );
7271
}
7372
if ( isComplexLike( a ) && isComplexLike( b ) ) {
74-
if ( a.BYTES_PER_ELEMENT === 4 && b.BYTES_PER_ELEMENT === 4 ) {
75-
return isAlmostEqualComplex64( a, b, maxULP );
76-
}
77-
return isAlmostEqualComplex128( a, b, maxULP );
73+
return isAlmostEqualComplex( a, b, maxULP );
7874
}
7975
return false;
8076
}

0 commit comments

Comments
 (0)