Skip to content

Commit f49b535

Browse files
committed
Auto-generated commit
1 parent 3064815 commit f49b535

4 files changed

Lines changed: 62 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 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-08-18)
7+
## Unreleased (2026-08-19)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`303b85c`](https://github.com/stdlib-js/stdlib/commit/303b85cb9b358b43a2f69e537f5dbaeebdad89a7) - update `ndarray/base` TypeScript declarations [(#14366)](https://github.com/stdlib-js/stdlib/pull/14366)
1314
- [`2359f61`](https://github.com/stdlib-js/stdlib/commit/2359f618e3d65ff3c006f90e58f44b397c96b3e1) - add `ndarray/base/kernels/generic/unary-strided1d/unblocked`
1415
- [`fb041a6`](https://github.com/stdlib-js/stdlib/commit/fb041a68a9bcc18b7078e26ea11118d5459c2b3c) - add `ndarray/base/kernels/generic/unary-strided1d/strategy`
1516
- [`0f459b6`](https://github.com/stdlib-js/stdlib/commit/0f459b6e5188aee3701259e63d793bef371ab41c) - add `ndarray/base/kernels/generic/unary-strided1d/blocked`
@@ -85,6 +86,8 @@ A total of 2 issues were closed in this release:
8586

8687
<details>
8788

89+
- [`dcb03da`](https://github.com/stdlib-js/stdlib/commit/dcb03da17f986abc96d0c3c913de9b602b5277a6) - **chore:** clean-up [(#14380)](https://github.com/stdlib-js/stdlib/pull/14380) _(by Philipp Burckhardt, Athan Reines)_
90+
- [`303b85c`](https://github.com/stdlib-js/stdlib/commit/303b85cb9b358b43a2f69e537f5dbaeebdad89a7) - **feat:** update `ndarray/base` TypeScript declarations [(#14366)](https://github.com/stdlib-js/stdlib/pull/14366) _(by stdlib-bot)_
8891
- [`6790020`](https://github.com/stdlib-js/stdlib/commit/67900203225ffd37694d4f7ce386988cd99482e3) - **docs:** update namespace table of contents [(#14367)](https://github.com/stdlib-js/stdlib/pull/14367) _(by stdlib-bot)_
8992
- [`2359f61`](https://github.com/stdlib-js/stdlib/commit/2359f618e3d65ff3c006f90e58f44b397c96b3e1) - **feat:** add `ndarray/base/kernels/generic/unary-strided1d/unblocked` _(by Athan Reines)_
9093
- [`0a1ac14`](https://github.com/stdlib-js/stdlib/commit/0a1ac149bcab7145a35d961a27e33fa0ba601182) - **docs:** fix descriptions and update spellings _(by Athan Reines)_

‎base/docs/types/index.d.ts‎

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ import nullsLike = require( './../../../base/nulls-like' );
137137
import numel = require( './../../../base/numel' );
138138
import numelDimension = require( './../../../base/numel-dimension' );
139139
import offset = require( './../../../base/offset' );
140+
import offsets = require( './../../../base/offsets' );
140141
import ones = require( './../../../base/ones' );
141142
import onesLike = require( './../../../base/ones-like' );
142143
import order = require( './../../../base/order' );
@@ -166,6 +167,7 @@ import rot180 = require( './../../../base/rot180' );
166167
import rotl90 = require( './../../../base/rotl90' );
167168
import rotr90 = require( './../../../base/rotr90' );
168169
import serializeMetaData = require( './../../../base/serialize-meta-data' );
170+
import setDescriptorOffsets = require( './../../../base/set-descriptor-offsets' );
169171
import shape = require( './../../../base/shape' );
170172
import shape2strides = require( './../../../base/shape2strides' );
171173
import shift = require( './../../../base/shift' );
@@ -3593,6 +3595,22 @@ interface Namespace {
35933595
*/
35943596
offset: typeof offset;
35953597

3598+
/**
3599+
* Returns the index offset specifying the underlying buffer index of the first iterated element for each ndarray in a provided list of ndarrays.
3600+
*
3601+
* @param arrays - list of ndarrays
3602+
* @returns index offsets
3603+
*
3604+
* @example
3605+
* var zeros = require( './../../../zeros' );
3606+
*
3607+
* var x = zeros( [ 3, 3, 3 ] );
3608+
*
3609+
* var out = ns.offsets( [ x ] );
3610+
* // returns [ 0 ]
3611+
*/
3612+
offsets: typeof offsets;
3613+
35963614
/**
35973615
* Creates a ones-filled ndarray having a specified shape and data type.
35983616
*
@@ -4367,6 +4385,43 @@ interface Namespace {
43674385
*/
43684386
serializeMetaData: typeof serializeMetaData;
43694387

4388+
/**
4389+
* Sets ndarray descriptor index offsets.
4390+
*
4391+
* ## Notes
4392+
*
4393+
* - This function mutates the provided descriptors.
4394+
*
4395+
* @param descriptors - list of ndarray descriptors
4396+
* @param offsets - list of index offsets
4397+
* @returns input array
4398+
*
4399+
* @example
4400+
* var Float64Array = require( '@stdlib/array/float64' );
4401+
* var getOffset = require( './../../../base/offset' );
4402+
* var ndarraylike2descriptor = require( './../../../base/ndarraylike2descriptor' );
4403+
*
4404+
* var obj = ndarraylike2descriptor({
4405+
* 'dtype': 'float64',
4406+
* 'data': new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] ),
4407+
* 'shape': [ 1 ],
4408+
* 'strides': [ 1 ],
4409+
* 'offset': 0,
4410+
* 'order': 'row-major'
4411+
* });
4412+
*
4413+
* var arr = [ obj ];
4414+
* var out = ns.setDescriptorOffsets( arr, [ 2 ] );
4415+
* // returns [...]
4416+
*
4417+
* var bool = ( out === arr );
4418+
* // returns true
4419+
*
4420+
* var offset = getOffset( arr[ 0 ] );
4421+
* // returns 2
4422+
*/
4423+
setDescriptorOffsets: typeof setDescriptorOffsets;
4424+
43704425
/**
43714426
* Returns the shape of a provided ndarray.
43724427
*

‎base/kernels/generic/unary-strided1d/strategy/docs/repl.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( x )
3-
Returns an object for reshaping an ndarray as a one-dimensional strided
4-
array view.
3+
Returns an object containing methods for reshaping an ndarray as a one-
4+
dimensional strided array view.
55

66
Parameters
77
----------

‎base/kernels/generic/unary-strided1d/unblocked/lib/4d.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function kernel( fcn, arrays, views, shape, stridesX, stridesY, strategyX, strat
199199
dv0.push( sv[3] );
200200
dv1.push( sv[2] - ( S0*sv[3] ) );
201201
dv2.push( sv[1] - ( S1*sv[2] ) );
202-
dv3.push( sv[0] - ( S2*sv[1]) );
202+
dv3.push( sv[0] - ( S2*sv[1] ) );
203203
}
204204
} else { // order === 'column-major'
205205
// For column-major ndarrays, the first dimensions have the fastest changing indices...

0 commit comments

Comments
 (0)