Skip to content

Commit 262e0b6

Browse files
committed
Auto-generated commit
1 parent 8c59629 commit 262e0b6

5 files changed

Lines changed: 79 additions & 9 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-09-30)
7+
## Unreleased (2026-10-02)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`3388e07`](https://github.com/stdlib-js/stdlib/commit/3388e077358cc0b59470c80634283489e004affa) - add float16 dtype support to `ndarray/slice-dimension-from` [(#15748)](https://github.com/stdlib-js/stdlib/pull/15748)
1314
- [`e152ec2`](https://github.com/stdlib-js/stdlib/commit/e152ec2a7c7aa789bf3eaf483398768457930b62) - add `ndarray/base/kernels/generic/ternary-strided1d/unblocked` [(#15630)](https://github.com/stdlib-js/stdlib/pull/15630)
1415
- [`25aa58a`](https://github.com/stdlib-js/stdlib/commit/25aa58ae7756fbb2460bb9f423fa9467b3f9acf2) - add `ndarray/base/kernels/generic/ternary-strided1d/blocked` [(#15558)](https://github.com/stdlib-js/stdlib/pull/15558)
1516
- [`02791af`](https://github.com/stdlib-js/stdlib/commit/02791af708223481dfa7739251892a6e5644977b) - add float16 dtype support to `ndarray/base/slice-to` [(#15531)](https://github.com/stdlib-js/stdlib/pull/15531)
@@ -134,6 +135,7 @@ A total of 4 issues were closed in this release:
134135

135136
<details>
136137

138+
- [`3388e07`](https://github.com/stdlib-js/stdlib/commit/3388e077358cc0b59470c80634283489e004affa) - **feat:** add float16 dtype support to `ndarray/slice-dimension-from` [(#15748)](https://github.com/stdlib-js/stdlib/pull/15748) _(by Samarth Kolarkar)_
137139
- [`0ee3933`](https://github.com/stdlib-js/stdlib/commit/0ee3933432578899483151dd85a35fc7f4f0e5f9) - **chore:** clean-up [(#15652)](https://github.com/stdlib-js/stdlib/pull/15652) _(by Philipp Burckhardt)_
138140
- [`32c09fd`](https://github.com/stdlib-js/stdlib/commit/32c09fd471df83a82ff9dcb5ccf08684555c0d5e) - **refactor:** resolve consensus memory layout _(by Athan Reines)_
139141
- [`100ca4c`](https://github.com/stdlib-js/stdlib/commit/100ca4c8d76ab8b40dfbb30bbbe77e86a2221a81) - **refactor:** resolve consensus order _(by Athan Reines)_

‎slice-dimension-from/benchmark/benchmark.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ bench( format( '%s::1d,base', pkg ), function benchmark( b ) {
4040
values = [
4141
baseEmpty( 'float64', [ 2 ], 'row-major' ),
4242
baseEmpty( 'float32', [ 2 ], 'row-major' ),
43+
baseEmpty( 'float16', [ 2 ], 'row-major' ),
4344
baseEmpty( 'int32', [ 2 ], 'row-major' ),
4445
baseEmpty( 'complex128', [ 2 ], 'row-major' ),
4546
baseEmpty( 'generic', [ 2 ], 'row-major' )
@@ -72,6 +73,7 @@ bench( format( '%s::1d,non-base', pkg ), function benchmark( b ) {
7273
values = [
7374
empty( [ 2 ], { 'dtype': 'float64' } ),
7475
empty( [ 2 ], { 'dtype': 'float32' } ),
76+
empty( [ 2 ], { 'dtype': 'float16' } ),
7577
empty( [ 2 ], { 'dtype': 'int32' } ),
7678
empty( [ 2 ], { 'dtype': 'complex128' } ),
7779
empty( [ 2 ], { 'dtype': 'generic' } )
@@ -106,6 +108,7 @@ bench( format( '%s::1d,base,out-of-bounds', pkg ), function benchmark( b ) {
106108
values = [
107109
baseEmpty( 'float64', [ 2 ], 'row-major' ),
108110
baseEmpty( 'float32', [ 2 ], 'row-major' ),
111+
baseEmpty( 'float16', [ 2 ], 'row-major' ),
109112
baseEmpty( 'int32', [ 2 ], 'row-major' ),
110113
baseEmpty( 'complex128', [ 2 ], 'row-major' ),
111114
baseEmpty( 'generic', [ 2 ], 'row-major' )
@@ -142,6 +145,7 @@ bench( format( '%s::1d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
142145
values = [
143146
empty( [ 2 ], { 'dtype': 'float64' } ),
144147
empty( [ 2 ], { 'dtype': 'float32' } ),
148+
empty( [ 2 ], { 'dtype': 'float16' } ),
145149
empty( [ 2 ], { 'dtype': 'int32' } ),
146150
empty( [ 2 ], { 'dtype': 'complex128' } ),
147151
empty( [ 2 ], { 'dtype': 'generic' } )
@@ -178,6 +182,7 @@ bench( format( '%s::2d,base', pkg ), function benchmark( b ) {
178182
values = [
179183
baseEmpty( 'float64', [ 2, 2 ], 'row-major' ),
180184
baseEmpty( 'float32', [ 2, 2 ], 'row-major' ),
185+
baseEmpty( 'float16', [ 2, 2 ], 'row-major' ),
181186
baseEmpty( 'int32', [ 2, 2 ], 'row-major' ),
182187
baseEmpty( 'complex128', [ 2, 2 ], 'row-major' ),
183188
baseEmpty( 'generic', [ 2, 2 ], 'row-major' )
@@ -210,6 +215,7 @@ bench( format( '%s::2d,non-base', pkg ), function benchmark( b ) {
210215
values = [
211216
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
212217
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
218+
empty( [ 2, 2 ], { 'dtype': 'float16' } ),
213219
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
214220
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
215221
empty( [ 2, 2 ], { 'dtype': 'generic' } )
@@ -244,6 +250,7 @@ bench( format( '%s::2d,base,out-of-bounds', pkg ), function benchmark( b ) {
244250
values = [
245251
baseEmpty( 'float64', [ 2, 2 ], 'row-major' ),
246252
baseEmpty( 'float32', [ 2, 2 ], 'row-major' ),
253+
baseEmpty( 'float16', [ 2, 2 ], 'row-major' ),
247254
baseEmpty( 'int32', [ 2, 2 ], 'row-major' ),
248255
baseEmpty( 'complex128', [ 2, 2 ], 'row-major' ),
249256
baseEmpty( 'generic', [ 2, 2 ], 'row-major' )
@@ -280,6 +287,7 @@ bench( format( '%s::2d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
280287
values = [
281288
empty( [ 2, 2 ], { 'dtype': 'float64' } ),
282289
empty( [ 2, 2 ], { 'dtype': 'float32' } ),
290+
empty( [ 2, 2 ], { 'dtype': 'float16' } ),
283291
empty( [ 2, 2 ], { 'dtype': 'int32' } ),
284292
empty( [ 2, 2 ], { 'dtype': 'complex128' } ),
285293
empty( [ 2, 2 ], { 'dtype': 'generic' } )
@@ -316,6 +324,7 @@ bench( format( '%s::3d,base', pkg ), function benchmark( b ) {
316324
values = [
317325
baseEmpty( 'float64', [ 2, 2, 2 ], 'row-major' ),
318326
baseEmpty( 'float32', [ 2, 2, 2 ], 'row-major' ),
327+
baseEmpty( 'float16', [ 2, 2, 2 ], 'row-major' ),
319328
baseEmpty( 'int32', [ 2, 2, 2 ], 'row-major' ),
320329
baseEmpty( 'complex128', [ 2, 2, 2 ], 'row-major' ),
321330
baseEmpty( 'generic', [ 2, 2, 2 ], 'row-major' )
@@ -348,6 +357,7 @@ bench( format( '%s::3d,non-base', pkg ), function benchmark( b ) {
348357
values = [
349358
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
350359
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
360+
empty( [ 2, 2, 2 ], { 'dtype': 'float16' } ),
351361
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
352362
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
353363
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
@@ -382,6 +392,7 @@ bench( format( '%s::3d,base,out-of-bounds', pkg ), function benchmark( b ) {
382392
values = [
383393
baseEmpty( 'float64', [ 2, 2, 2 ], 'row-major' ),
384394
baseEmpty( 'float32', [ 2, 2, 2 ], 'row-major' ),
395+
baseEmpty( 'float16', [ 2, 2, 2 ], 'row-major' ),
385396
baseEmpty( 'int32', [ 2, 2, 2 ], 'row-major' ),
386397
baseEmpty( 'complex128', [ 2, 2, 2 ], 'row-major' ),
387398
baseEmpty( 'generic', [ 2, 2, 2 ], 'row-major' )
@@ -418,6 +429,7 @@ bench( format( '%s::3d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
418429
values = [
419430
empty( [ 2, 2, 2 ], { 'dtype': 'float64' } ),
420431
empty( [ 2, 2, 2 ], { 'dtype': 'float32' } ),
432+
empty( [ 2, 2, 2 ], { 'dtype': 'float16' } ),
421433
empty( [ 2, 2, 2 ], { 'dtype': 'int32' } ),
422434
empty( [ 2, 2, 2 ], { 'dtype': 'complex128' } ),
423435
empty( [ 2, 2, 2 ], { 'dtype': 'generic' } )
@@ -454,6 +466,7 @@ bench( format( '%s::4d,base', pkg ), function benchmark( b ) {
454466
values = [
455467
baseEmpty( 'float64', [ 2, 2, 2, 2 ], 'row-major' ),
456468
baseEmpty( 'float32', [ 2, 2, 2, 2 ], 'row-major' ),
469+
baseEmpty( 'float16', [ 2, 2, 2, 2 ], 'row-major' ),
457470
baseEmpty( 'int32', [ 2, 2, 2, 2 ], 'row-major' ),
458471
baseEmpty( 'complex128', [ 2, 2, 2, 2 ], 'row-major' ),
459472
baseEmpty( 'generic', [ 2, 2, 2, 2 ], 'row-major' )
@@ -486,6 +499,7 @@ bench( format( '%s::4d,non-base', pkg ), function benchmark( b ) {
486499
values = [
487500
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
488501
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
502+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float16' } ),
489503
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
490504
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
491505
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
@@ -520,6 +534,7 @@ bench( format( '%s::4d,base,out-of-bounds', pkg ), function benchmark( b ) {
520534
values = [
521535
baseEmpty( 'float64', [ 2, 2, 2, 2 ], 'row-major' ),
522536
baseEmpty( 'float32', [ 2, 2, 2, 2 ], 'row-major' ),
537+
baseEmpty( 'float16', [ 2, 2, 2, 2 ], 'row-major' ),
523538
baseEmpty( 'int32', [ 2, 2, 2, 2 ], 'row-major' ),
524539
baseEmpty( 'complex128', [ 2, 2, 2, 2 ], 'row-major' ),
525540
baseEmpty( 'generic', [ 2, 2, 2, 2 ], 'row-major' )
@@ -556,6 +571,7 @@ bench( format( '%s::4d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
556571
values = [
557572
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
558573
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
574+
empty( [ 2, 2, 2, 2 ], { 'dtype': 'float16' } ),
559575
empty( [ 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
560576
empty( [ 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
561577
empty( [ 2, 2, 2, 2 ], { 'dtype': 'generic' } )
@@ -592,6 +608,7 @@ bench( format( '%s::5d,base', pkg ), function benchmark( b ) {
592608
values = [
593609
baseEmpty( 'float64', [ 2, 2, 2, 2, 2 ], 'row-major' ),
594610
baseEmpty( 'float32', [ 2, 2, 2, 2, 2 ], 'row-major' ),
611+
baseEmpty( 'float16', [ 2, 2, 2, 2, 2 ], 'row-major' ),
595612
baseEmpty( 'int32', [ 2, 2, 2, 2, 2 ], 'row-major' ),
596613
baseEmpty( 'complex128', [ 2, 2, 2, 2, 2 ], 'row-major' ),
597614
baseEmpty( 'generic', [ 2, 2, 2, 2, 2 ], 'row-major' )
@@ -624,6 +641,7 @@ bench( format( '%s::5d,non-base', pkg ), function benchmark( b ) {
624641
values = [
625642
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
626643
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
644+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float16' } ),
627645
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
628646
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
629647
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )
@@ -658,6 +676,7 @@ bench( format( '%s::5d,base,out-of-bounds', pkg ), function benchmark( b ) {
658676
values = [
659677
baseEmpty( 'float64', [ 2, 2, 2, 2, 2 ], 'row-major' ),
660678
baseEmpty( 'float32', [ 2, 2, 2, 2, 2 ], 'row-major' ),
679+
baseEmpty( 'float16', [ 2, 2, 2, 2, 2 ], 'row-major' ),
661680
baseEmpty( 'int32', [ 2, 2, 2, 2, 2 ], 'row-major' ),
662681
baseEmpty( 'complex128', [ 2, 2, 2, 2, 2 ], 'row-major' ),
663682
baseEmpty( 'generic', [ 2, 2, 2, 2, 2 ], 'row-major' )
@@ -694,6 +713,7 @@ bench( format( '%s::5d,non-base,out-of-bounds', pkg ), function benchmark( b ) {
694713
values = [
695714
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float64' } ),
696715
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float32' } ),
716+
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'float16' } ),
697717
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'int32' } ),
698718
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'complex128' } ),
699719
empty( [ 2, 2, 2, 2, 2 ], { 'dtype': 'generic' } )

‎slice-dimension-from/docs/types/index.d.ts‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23-
import { typedndarray, genericndarray, float64ndarray, float32ndarray, int32ndarray, int16ndarray, int8ndarray, uint32ndarray, uint16ndarray, uint8ndarray, uint8cndarray, complex128ndarray, complex64ndarray } from '@stdlib/types/ndarray';
23+
import { typedndarray, genericndarray, float64ndarray, float32ndarray, float16ndarray, int32ndarray, int16ndarray, int8ndarray, uint32ndarray, uint16ndarray, uint8ndarray, uint8cndarray, complex128ndarray, complex64ndarray } from '@stdlib/types/ndarray';
2424

2525
/**
2626
* Interface defining function options.
@@ -112,6 +112,46 @@ declare function sliceDimensionFrom( x: float64ndarray, dim: number, start: numb
112112
*/
113113
declare function sliceDimensionFrom( x: float32ndarray, dim: number, start: number, options?: Options ): float32ndarray;
114114

115+
/**
116+
* Returns a read-only shifted view of an input ndarray along a specified dimension.
117+
*
118+
* @param x - input array
119+
* @param dim - index of dimension to slice
120+
* @param start - starting index (inclusive)
121+
* @param options - function options
122+
* @param options.strict - boolean indicating whether to enforce strict bounds checking
123+
* @returns output array
124+
*
125+
* @example
126+
* var typedarray = require( '@stdlib/array/typed' );
127+
* var ndarray = require( '@stdlib/ndarray/ctor' );
128+
* var ndarray2array = require( '@stdlib/ndarray/to-array' );
129+
*
130+
* var buffer = typedarray( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ], 'float16' );
131+
* var shape = [ 3, 2 ];
132+
* var strides = [ 2, 1 ];
133+
* var offset = 0;
134+
*
135+
* var x = ndarray( 'float16', buffer, shape, strides, offset, 'row-major' );
136+
* // returns <ndarray>
137+
*
138+
* var sh = x.shape;
139+
* // returns [ 3, 2 ]
140+
*
141+
* var arr = ndarray2array( x );
142+
* // returns [ [ 1.0, 2.0 ], [ 3.0, 4.0 ], [ 5.0, 6.0 ] ]
143+
*
144+
* var y = sliceDimensionFrom( x, 0, 1 );
145+
* // returns <ndarray>
146+
*
147+
* sh = y.shape;
148+
* // returns [ 2, 2 ]
149+
*
150+
* arr = ndarray2array( y );
151+
* // returns [ [ 3.0, 4.0 ], [ 5.0, 6.0 ] ]
152+
*/
153+
declare function sliceDimensionFrom( x: float16ndarray, dim: number, start: number, options?: Options ): float16ndarray;
154+
115155
/**
116156
* Returns a read-only shifted view of an input ndarray along a specified dimension.
117157
*

‎slice-dimension-from/docs/types/test.ts‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import sliceDimensionFrom = require( './index' );
3030

3131
sliceDimensionFrom( empty( 'float64', sh, order ), 1, s ); // $ExpectType float64ndarray
3232
sliceDimensionFrom( empty( 'float32', sh, order ), 1, s ); // $ExpectType float32ndarray
33+
sliceDimensionFrom( empty( 'float16', sh, order ), 1, s ); // $ExpectType float16ndarray
3334
sliceDimensionFrom( empty( 'complex128', sh, order ), 1, s ); // $ExpectType complex128ndarray
3435
sliceDimensionFrom( empty( 'complex64', sh, order ), 1, s ); // $ExpectType complex64ndarray
3536
sliceDimensionFrom( empty( 'int32', sh, order ), 1, s ); // $ExpectType int32ndarray
@@ -42,6 +43,7 @@ import sliceDimensionFrom = require( './index' );
4243

4344
sliceDimensionFrom( empty( 'float64', sh, order ), 1, s, { 'strict': false } ); // $ExpectType float64ndarray
4445
sliceDimensionFrom( empty( 'float32', sh, order ), 1, s, { 'strict': false } ); // $ExpectType float32ndarray
46+
sliceDimensionFrom( empty( 'float16', sh, order ), 1, s, { 'strict': false } ); // $ExpectType float16ndarray
4547
sliceDimensionFrom( empty( 'complex128', sh, order ), 1, s, { 'strict': false } ); // $ExpectType complex128ndarray
4648
sliceDimensionFrom( empty( 'complex64', sh, order ), 1, s, { 'strict': false } ); // $ExpectType complex64ndarray
4749
sliceDimensionFrom( empty( 'int32', sh, order ), 1, s, { 'strict': false } ); // $ExpectType int32ndarray
@@ -54,6 +56,7 @@ import sliceDimensionFrom = require( './index' );
5456

5557
sliceDimensionFrom( empty( 'float64', sh, order ), 1, s, { 'strict': true } ); // $ExpectType float64ndarray
5658
sliceDimensionFrom( empty( 'float32', sh, order ), 1, s, { 'strict': true } ); // $ExpectType float32ndarray
59+
sliceDimensionFrom( empty( 'float16', sh, order ), 1, s, { 'strict': true } ); // $ExpectType float16ndarray
5760
sliceDimensionFrom( empty( 'complex128', sh, order ), 1, s, { 'strict': true } ); // $ExpectType complex128ndarray
5861
sliceDimensionFrom( empty( 'complex64', sh, order ), 1, s, { 'strict': true } ); // $ExpectType complex64ndarray
5962
sliceDimensionFrom( empty( 'int32', sh, order ), 1, s, { 'strict': true } ); // $ExpectType int32ndarray
@@ -126,13 +129,13 @@ import sliceDimensionFrom = require( './index' );
126129
sliceDimensionFrom( x, 1, ( x: number ): number => x, 1 ); // $ExpectError
127130

128131
sliceDimensionFrom( x, 1, '5', {} ); // $ExpectError
129-
sliceDimensionFrom( x, 1, false, {}; // $ExpectError
130-
sliceDimensionFrom( x, 1, true, {}; // $ExpectError
131-
sliceDimensionFrom( x, 1, null, {}; // $ExpectError
132-
sliceDimensionFrom( x, 1, undefined, {}; // $ExpectError
133-
sliceDimensionFrom( x, 1, [ '5' ], {}; // $ExpectError
134-
sliceDimensionFrom( x, 1, {}, {}; // $ExpectError
135-
sliceDimensionFrom( x, 1, ( x: number ): number => x, {}; // $ExpectError
132+
sliceDimensionFrom( x, 1, false, {} ); // $ExpectError
133+
sliceDimensionFrom( x, 1, true, {} ); // $ExpectError
134+
sliceDimensionFrom( x, 1, null, {} ); // $ExpectError
135+
sliceDimensionFrom( x, 1, undefined, {} ); // $ExpectError
136+
sliceDimensionFrom( x, 1, [ '5' ], {} ); // $ExpectError
137+
sliceDimensionFrom( x, 1, {}, {} ); // $ExpectError
138+
sliceDimensionFrom( x, 1, ( x: number ): number => x, {} ); // $ExpectError
136139
}
137140

138141
// The compiler throws an error if the function is provided a fourth argument which is not an object...

‎slice-dimension-from/test/test.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i
493493
values = [
494494
zeros( [ 1 ], { 'dtype': 'float64' } ),
495495
zeros( [ 1, 1 ], { 'dtype': 'float32' } ),
496+
zeros( [ 1, 1 ], { 'dtype': 'float16' } ),
496497
zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ),
497498
zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ),
498499
zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } )
@@ -505,6 +506,7 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i
505506
20,
506507
20,
507508
20,
509+
20,
508510
10
509511
];
510512
for ( i = 0; i < values.length; i++ ) {
@@ -530,6 +532,7 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i
530532
values = [
531533
zeros( [ 1 ], { 'dtype': 'float64' } ),
532534
zeros( [ 1, 1 ], { 'dtype': 'float32' } ),
535+
zeros( [ 1, 1 ], { 'dtype': 'float16' } ),
533536
zeros( [ 1, 1, 1 ], { 'dtype': 'int32' } ),
534537
zeros( [ 1, 1, 1, 1 ], { 'dtype': 'uint32' } ),
535538
zeros( [ 1, 1, 1, 1, 1 ], { 'dtype': 'complex128' } )
@@ -540,6 +543,7 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i
540543
dim = [
541544
0,
542545
1,
546+
1,
543547
0,
544548
1,
545549
4
@@ -550,6 +554,7 @@ tape( 'in non-strict mode, the function returns an empty array when a starting i
550554
1,
551555
1,
552556
1,
557+
1,
553558
1
554559
];
555560
for ( i = 0; i < values.length; i++ ) {

0 commit comments

Comments
 (0)