8000 Auto-generated commit · stdlib-js/ndarray-empty-like@f4ab7e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit f4ab7e6

Browse files
committed
Auto-generated commit
1 parent 35baa12 commit f4ab7e6

File tree

4 files changed

+31
-17
lines changed

4 files changed

+31
-17
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,13 @@ for ( i = 0; i < dt.length; i++ ) {
184184

185185
<section class="related">
186186

187+
* * *
188+
189+
## See Also
190+
191+
- <span class="package-name">[`@stdlib/ndarray-empty`][@stdlib/ndarray/empty]</span><span class="delimiter">: </span><span class="description">create an uninitialized ndarray having a specified shape and data type.</span>
192+
- <span class="package-name">[`@stdlib/ndarray-zeros-like`][@stdlib/ndarray/zeros-like]</span><span class="delimiter">: </span><span class="description">create a zero-filled ndarray having the same shape and data type as a provided ndarray.</span>
193+
187194
</section>
188195

189196
<!-- /.related -->
@@ -257,9 +264,17 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
257264

258265
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-empty-like/main/LICENSE
259266

260-
[@stdlib/ndarray/ctor]: https://github.com/stdlib-js/stdlib
267+
[@stdlib/ndarray/ctor]: https://github.com/stdlib-js/ndarray-ctor
268+
269+
[@stdlib/ndarray/dtypes]: https://github.com/stdlib-js/ndarray-dtypes
270+
271+
<!-- <related-links> -->
272+
273+
[@stdlib/ndarray/empty]: https://github.com/stdlib-js/ndarray-empty
274+
275+
[@stdlib/ndarray/zeros-like]: https://github.com/stdlib-js/ndarray-zeros-like
261276

262-
[@stdlib/ndarray/dtypes]: https://github.com/stdlib-js/stdlib
277+
<!-- </related-links> -->
263278

264279
</section>
265280

docs/types/index.d.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ interface OptionsWithDType extends Options {
259259
* dt = y.dtype;
260260
* // returns 'float64'
261261
*/
262-
declare function emptyLike( x: float64ndarray, options?: Options ): float64ndarray; // tslint:disable-line:max-line-length
262+
declare function emptyLike( x: float64ndarray, options?: Options ): float64ndarray;
263263

264264
/**
265265
* Creates an uninitialized array having the same shape and data type as a provided input ndarray.
@@ -295,7 +295,7 @@ declare function emptyLike( x: float64ndarray, options?: Options ): float64ndarr
295295
* dt = y.dtype;
296296
* // returns 'float32'
297297
*/
298-
declare function emptyLike( x: float32ndarray, options?: Options ): float32ndarray; // tslint:disable-line:max-line-length
298+
declare function emptyLike( x: float32ndarray, options?: Options ): float32ndarray;
299299

300300
/**
301301
* Creates an uninitialized array having the same shape and data type as a provided input ndarray.
@@ -331,7 +331,7 @@ declare function emptyLike( x: float32ndarray, options?: Options ): float32ndarr
331331
* dt = y.dtype;
332332
* // returns 'complex128'
333333
*/
334-
declare function emptyLike( x: complex128ndarray, options?: Options ): complex128ndarray; // tslint:disable-line:max-line-length
334+
declare function emptyLike( x: complex128ndarray, options?: Options ): complex128ndarray;
335335

336336
/**
337337
* Creates an uninitialized array having the same shape and data type as a provided input ndarray.
@@ -367,7 +367,7 @@ declare function emptyLike( x: complex128ndarray, options?: Options ): complex12
367367
* dt = y.dtype;
368368
* // returns 'complex64'
369369
*/
370-
declare function emptyLike( x: complex64ndarray, options?: Options ): complex64ndarray; // tslint:disable-line:max-line-length
370+
declare function emptyLike( x: complex64ndarray, options?: Options ): complex64ndarray;
371371

372372
/**
373373
* Creates an uninitialized array having the same shape and data type as a provided input ndarray.
@@ -511,7 +511,7 @@ declare function emptyLike( x: int8ndarray, options?: Options ): int8ndarray;
511511
* dt = y.dtype;
512512
* // returns 'uint32'
513513
*/
514-
declare function emptyLike( x: uint32ndarray, options?: Options ): uint32ndarray; // tslint:disable-line:max-line-length
514+
declare function emptyLike( x: uint32ndarray, options?: Options ): uint32ndarray;
515515

516516
/**
517517
* Creates an uninitialized array having the same shape and data type as a provided input ndarray.
@@ -547,7 +547,7 @@ declare function emptyLike( x: uint32ndarray, options?: Options ): uint32ndarray
547547
* dt = y.dtype;
548548
* // returns 'uint16'
549549
*/
550-
declare function emptyLike( x: uint16ndarray, options?: Options ): uint16ndarray; // tslint:disable-line:max-line-length
550+
declare function emptyLike( x: uint16ndarray, options?: Options ): uint16ndarray;
551551

552552
/**
553553
* Creates an uninitialized array having the same shape and data type as a provided input ndarray.
@@ -619,7 +619,7 @@ declare function emptyLike( x: uint8ndarray, options?: Options ): uint8ndarray;
619619
* dt = y.dtype;
620620
* // returns 'uint8c'
621621
*/
622-
declare function emptyLike( x: uint8cndarray, options?: Options ): uint8cndarray; // tslint:disable-line:max-line-length
622+
declare function emptyLike( x: uint8cndarray, options?: Options ): uint8cndarray;
623623

624624
/**
625625
* Creates an uninitialized double-precision floating-point array having the same shape as a provided input ndarray.
@@ -658,7 +658,7 @@ declare function emptyLike( x: uint8cndarray, options?: Options ): uint8cndarray
658658
* dt = y.dtype;
659659
* // returns 'float64'
660660
*/
661-
declare function emptyLike( x: ndarray, options: Float64Options ): float64ndarray; // tslint:disable-line:max-line-length
661+
declare function emptyLike( x: ndarray, options: Float64Options ): float64ndarray;
662662

663663
/**
664664
* Creates an uninitialized single-precision floating-point array having the same shape as a provided input ndarray.
@@ -697,7 +697,7 @@ declare function emptyLike( x: ndarray, options: Float64Options ): float64ndarra
697697
* dt = y.dtype;
698698
* // returns 'float32'
699699
*/
700-
declare function emptyLike( x: ndarray, options: Float32Options ): float32ndarray; // tslint:disable-line:max-line-length
700+
declare function emptyLike( x: ndarray, options: Float32Options ): float32ndarray;
701701

702702
/**
703703
* Creates an uninitialized double-precision complex floating-point array having the same shape as a provided input ndarray.
@@ -736,7 +736,7 @@ declare function emptyLike( x: ndarray, options: Float32Options ): float32ndarra
736736
* dt = y.dtype;
737737
* // returns 'complex128'
738738
*/
739-
declare function emptyLike( x: ndarray, options: Complex128Options ): complex128ndarray; // tslint:disable-line:max-line-length
739+
declare function emptyLike( x: ndarray, options: Complex128Options ): complex128ndarray;
740740

741741
/**
742742
* Creates an uninitialized single-precision complex floating-point array having the same shape as a provided input ndarray.
@@ -775,7 +775,7 @@ declare function emptyLike( x: ndarray, options: Complex128Options ): complex128
775775
* dt = y.dtype;
776776
* // returns 'complex64'
777777
*/
778-
declare function emptyLike( x: ndarray, options: Complex64Options ): complex64ndarray; // tslint:disable-line:max-line-length
778+
declare function emptyLike( x: ndarray, options: Complex64Options ): complex64ndarray;
779779

780780
/**
781781
* Creates an uninitialized 32-bit signed integer array having the same shape as a provided input ndarray.
@@ -1085,7 +1085,7 @@ declare function emptyLike( x: ndarray, options: Uint8COptions ): uint8cndarray;
10851085
* dt = y.dtype;
10861086
* // returns 'generic'
10871087
*/
1088-
declare function emptyLike( x: ndarray, options?: Options | OptionsWithDType ): typedndarray<number>; // tslint:disable-line:max-line-length
1088+
declare function emptyLike( x: ndarray, options?: Options | OptionsWithDType ): typedndarray<number>;
10891089

10901090

10911091
// EXPORTS //

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@stdlib/ndarray-order": "^0.1.0",
5252
"@stdlib/ndarray-shape": "^0.1.0",
5353
"@stdlib/string-format": "^0.1.1",
54-
"@stdlib/types": "^0.1.0"
54+
"@stdlib/types": "^0.2.0"
5555
},
5656
"devDependencies": {
5757
"@stdlib/array-complex128": "^0.1.0",
@@ -66,7 +66,7 @@
6666
"@stdlib/array-uint8": "^0.1.1",
6767
"@stdlib/array-uint8c": "^0.1.1",
6868
"@stdlib/assert-instance-of": "^0.1.1",
69-
"@stdlib/bench": "^0.1.0",
69+
"@stdlib/bench": "^0.2.0",
7070
"@stdlib/buffer-ctor": "^0.1.1",
7171
"@stdlib/math-base-special-pow": "^0.1.0",
7272
"@stdlib/ndarray-base-zeros": "^0.1.0",

0 commit comments

Comments
 (0)
0