Skip to content

Commit 4f26616

Browse files
committed
Auto-generated commit
1 parent 8b68c96 commit 4f26616

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
##### Features
2222

23+
- [`da8a676`](https://github.com/stdlib-js/stdlib/commit/da8a676ef0097af7ad60e7379b52930e03d65c95) - update namespace TypeScript declarations [(#6315)](https://github.com/stdlib-js/stdlib/pull/6315)
2324
- [`282d01f`](https://github.com/stdlib-js/stdlib/commit/282d01f86247ea1b4c8a3345493b6dc8ec034517) - add `fillBy` to namespace
2425
- [`e661213`](https://github.com/stdlib-js/stdlib/commit/e66121352ef767cdb87d19e938b1eccf7970fa3a) - update namespace TypeScript declarations [(#4706)](https://github.com/stdlib-js/stdlib/pull/4706)
2526
- [`741b6f1`](https://github.com/stdlib-js/stdlib/commit/741b6f1df8ce11e77fb22c279cee6bbae3323176) - add `spreadDimensions` to namespace
@@ -1020,6 +1021,7 @@ A total of 7 people contributed to this release. Thank you to the following cont
10201021

10211022
<details>
10221023

1024+
- [`da8a676`](https://github.com/stdlib-js/stdlib/commit/da8a676ef0097af7ad60e7379b52930e03d65c95) - **feat:** update namespace TypeScript declarations [(#6315)](https://github.com/stdlib-js/stdlib/pull/6315) _(by stdlib-bot)_
10231025
- [`bb5117c`](https://github.com/stdlib-js/stdlib/commit/bb5117c314dcc31b3c7100eacb1a693198962e3b) - **docs:** update namespace table of contents [(#6317)](https://github.com/stdlib-js/stdlib/pull/6317) _(by stdlib-bot)_
10241026
- [`40fc3a2`](https://github.com/stdlib-js/stdlib/commit/40fc3a218445c34a667237cadb74ae9417cc0392) - **chore:** add TODO _(by Athan Reines)_
10251027
- [`1aca9d3`](https://github.com/stdlib-js/stdlib/commit/1aca9d37e47e33c03b94bb5b128647c7387172e2) - **fix:** update type defn _(by Athan Reines)_

CONTRIBUTORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Contributors listed in alphabetical order.
44

55
Aadish Jain <jain.aadishj@gmail.com>
6+
Aarya Balwadkar <142713127+AaryaBalwadkar@users.noreply.github.com>
67
Aayush Khanna <aayushiitbhu23@gmail.com>
78
Abdelrahman Samir <60700731+abdelrahman04@users.noreply.github.com>
89
Abdul Kaium <97376242+impawstarlight@users.noreply.github.com>
@@ -104,6 +105,7 @@ Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
104105
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
105106
Ori Miles <97595296+orimiles5@users.noreply.github.com>
106107
Philipp Burckhardt <pburckhardt@outlook.com>
108+
Prajjwal Bajpai <142303989+prajjwalbajpai@users.noreply.github.com>
107109
Prajwal Kulkarni <prajwalkulkarni76@gmail.com>
108110
Pranav Goswami <pranavchiku11@gmail.com>
109111
Pranjal Jha <97080887+PraneGIT@users.noreply.github.com>

docs/types/index.d.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import empty = require( '@stdlib/ndarray-base-empty' );
5151
import emptyLike = require( '@stdlib/ndarray-base-empty-like' );
5252
import expandDimensions = require( '@stdlib/ndarray-base-expand-dimensions' );
5353
import fill = require( '@stdlib/ndarray-base-fill' );
54+
import fillBy = require( '@stdlib/ndarray-base-fill-by' );
5455
import flag = require( '@stdlib/ndarray-base-flag' );
5556
import flags = require( '@stdlib/ndarray-base-flags' );
5657
import fliplr = require( '@stdlib/ndarray-base-fliplr' );
@@ -986,6 +987,49 @@ interface Namespace {
986987
*/
987988
fill: typeof fill;
988989

990+
/**
991+
* Fills an input ndarray according to a callback function.
992+
*
993+
* @param x - input ndarray
994+
* @param fcn - callback function
995+
* @param thisArg - callback function execution context
996+
*
997+
* @example
998+
* var Float64Array = require( '@stdlib/array-float64' );
999+
*
1000+
* function fcn() {
1001+
* return 10.0;
1002+
* }
1003+
*
1004+
* // Create a data buffer:
1005+
* var xbuf = new Float64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
1006+
*
1007+
* // Define the shape of the input array:
1008+
* var shape = [ 3, 1, 2 ];
1009+
*
1010+
* // Define the array strides:
1011+
* var sx = [ 2, 2, 1 ];
1012+
*
1013+
* // Define the index offset:
1014+
* var ox = 0;
1015+
*
1016+
* // Create the input ndarray-like object:
1017+
* var x = {
1018+
* 'dtype': 'float64',
1019+
* 'data': xbuf,
1020+
* 'shape': shape,
1021+
* 'strides': sx,
1022+
* 'offset': ox,
1023+
* 'order': 'row-major'
1024+
* };
1025+
*
1026+
* ns.fillBy( x, fcn );
1027+
*
1028+
* console.log( x.data );
1029+
* // => <Float64Array>[ 10.0, 10.0, 10.0, 10.0, 10.0, 10.0 ]
1030+
*/
1031+
fillBy: typeof fillBy;
1032+
9891033
/**
9901034
* Returns a specified flag for a provided ndarray.
9911035
*

0 commit comments

Comments
 (0)