Skip to content

Commit e2d7451

Browse files
committed
Auto-generated commit
1 parent c747062 commit e2d7451

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 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 (2026-04-14)
7+
## Unreleased (2026-04-19)
88

99
<section class="features">
1010

@@ -173,6 +173,7 @@
173173

174174
### Bug Fixes
175175

176+
- [`2d234cc`](https://github.com/stdlib-js/stdlib/commit/2d234cc858ceeea867610d7c86dd309766990dcd) - use `empty` instead of `zeros` in `array/from-scalar` [(#11628)](https://github.com/stdlib-js/stdlib/pull/11628)
176177
- [`ae32f26`](https://github.com/stdlib-js/stdlib/commit/ae32f26441101c24f0faf1a04ecceb3e66387578) - ensure support for boolean arrays in polyfill
177178
- [`3a0b3cc`](https://github.com/stdlib-js/stdlib/commit/3a0b3cc30d966f8739511d4f0cedc73b07376e59) - improve `entries` return type and examples in `array/complex128` types
178179
- [`d3b0f25`](https://github.com/stdlib-js/stdlib/commit/d3b0f251b37fdc27cd3a02ac794dddba0b2f7b36) - correct loop bounds in toJSON method for `nested2views`
@@ -269,6 +270,7 @@ A total of 38 issues were closed in this release:
269270

270271
<details>
271272

273+
- [`2d234cc`](https://github.com/stdlib-js/stdlib/commit/2d234cc858ceeea867610d7c86dd309766990dcd) - **fix:** use `empty` instead of `zeros` in `array/from-scalar` [(#11628)](https://github.com/stdlib-js/stdlib/pull/11628) _(by Karan Anand)_
272274
- [`56bc531`](https://github.com/stdlib-js/stdlib/commit/56bc5310298aec8f6eca5ca07ccff333c4792a40) - **bench:** refactor to use string interpolation in `@stdlib/array` [(#11412)](https://github.com/stdlib-js/stdlib/pull/11412) _(by Karan Anand, Athan Reines)_
273275
- [`ae32f26`](https://github.com/stdlib-js/stdlib/commit/ae32f26441101c24f0faf1a04ecceb3e66387578) - **fix:** ensure support for boolean arrays in polyfill _(by Athan Reines)_
274276
- [`08624f9`](https://github.com/stdlib-js/stdlib/commit/08624f9135cd19871865ea671a232f4d3149e639) - **docs:** improve doctests for complex number instances in `array/complex128` [(#10718)](https://github.com/stdlib-js/stdlib/pull/10718) _(by Aniket Sonawane, Athan Reines, stdlib-bot)_

from-scalar/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var isBoolean = require( '@stdlib/assert/is-boolean' ).isPrimitive;
2727
var isAccessorArray = require( './../../base/assert/is-accessor-array' );
2828
var accessorSetter = require( './../../base/accessor-setter' );
2929
var setter = require( './../../base/setter' );
30-
var zeros = require( './../../zeros' );
30+
var empty = require( './../../empty' );
3131
var dtype = require( '@stdlib/complex/dtype' );
3232
var defaults = require( './../../defaults' );
3333

@@ -91,7 +91,7 @@ function scalar2array( value ) {
9191
} else {
9292
dt = arguments[ 1 ];
9393
}
94-
out = zeros( 1, dt ); // delegate dtype validation to `zeros`
94+
out = empty( 1, dt ); // delegate allocation and dtype validation to `empty`
9595
if ( flg && isComplexDataType( dt ) ) {
9696
v = [ value, 0.0 ]; // note: we're assuming that the ComplexXXArray setter accepts an array of interleaved real and imaginary components
9797
} else {

0 commit comments

Comments
 (0)