Skip to content

Commit fdd45d3

Browse files
committed
Auto-generated commit
1 parent 01d427b commit fdd45d3

3 files changed

Lines changed: 134 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2026-06-18)
7+
## Unreleased (2026-06-19)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`d74dceb`](https://github.com/stdlib-js/stdlib/commit/d74dceb64af7453ed81c2dcce12b3dda7ba91e07) - update `blas/ext/base` TypeScript declarations [(#12962)](https://github.com/stdlib-js/stdlib/pull/12962)
14+
- [`882c6dd`](https://github.com/stdlib-js/stdlib/commit/882c6dd2a6d6740d82f607fb278dc157f708deb0) - update `blas/ext/base/ndarray` TypeScript declarations [(#12961)](https://github.com/stdlib-js/stdlib/pull/12961)
1315
- [`c1e53a8`](https://github.com/stdlib-js/stdlib/commit/c1e53a8f96967e354a59152e8465a90b827f44c1) - add `glastIndexOfTruthy` to namespace
1416
- [`0e633ea`](https://github.com/stdlib-js/stdlib/commit/0e633ea6279e4095eaaea6082fc471dc474f3aba) - add `blas/ext/base/glast-index-of-truthy` [(#12948)](https://github.com/stdlib-js/stdlib/pull/12948)
1517
- [`f407a33`](https://github.com/stdlib-js/stdlib/commit/f407a3359654c6f68402ddc9b16d1147c8848949) - add `gminheapify` to namespace
@@ -400,6 +402,10 @@
400402

401403
<details>
402404

405+
- [`2fbaef4`](https://github.com/stdlib-js/stdlib/commit/2fbaef4857d78ad2adc501f93ae872e44a02df6b) - **docs:** update namespace table of contents [(#12963)](https://github.com/stdlib-js/stdlib/pull/12963) _(by stdlib-bot)_
406+
- [`d74dceb`](https://github.com/stdlib-js/stdlib/commit/d74dceb64af7453ed81c2dcce12b3dda7ba91e07) - **feat:** update `blas/ext/base` TypeScript declarations [(#12962)](https://github.com/stdlib-js/stdlib/pull/12962) _(by stdlib-bot)_
407+
- [`882c6dd`](https://github.com/stdlib-js/stdlib/commit/882c6dd2a6d6740d82f607fb278dc157f708deb0) - **feat:** update `blas/ext/base/ndarray` TypeScript declarations [(#12961)](https://github.com/stdlib-js/stdlib/pull/12961) _(by stdlib-bot)_
408+
- [`a1c00d0`](https://github.com/stdlib-js/stdlib/commit/a1c00d0d4a4343bdd4c1ae6c714a77af9b0df039) - **docs:** fix capitalization [(#12952)](https://github.com/stdlib-js/stdlib/pull/12952) _(by Philipp Burckhardt)_
403409
- [`c1e53a8`](https://github.com/stdlib-js/stdlib/commit/c1e53a8f96967e354a59152e8465a90b827f44c1) - **feat:** add `glastIndexOfTruthy` to namespace _(by Athan Reines)_
404410
- [`0e633ea`](https://github.com/stdlib-js/stdlib/commit/0e633ea6279e4095eaaea6082fc471dc474f3aba) - **feat:** add `blas/ext/base/glast-index-of-truthy` [(#12948)](https://github.com/stdlib-js/stdlib/pull/12948) _(by Muhammad Haris, Athan Reines)_
405411
- [`5d56e47`](https://github.com/stdlib-js/stdlib/commit/5d56e47f5bd22276fe377db7687b2055b21933d2) - **bench:** fix descriptions _(by Athan Reines)_

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,18 @@ var o = ns;
211211
- <span class="signature">[`gfindIndex( N, x, strideX, clbk[, thisArg] )`][@stdlib/blas/ext/base/gfind-index]</span><span class="delimiter">: </span><span class="description">return the index of the first element which passes a test implemented by a predicate function.</span>
212212
- <span class="signature">[`gfindLastIndex( N, x, strideX, clbk[, thisArg] )`][@stdlib/blas/ext/base/gfind-last-index]</span><span class="delimiter">: </span><span class="description">return the index of the last element which passes a test implemented by a predicate function.</span>
213213
- <span class="signature">[`gindexOfColumn( order, M, N, A, LDA, x, strideX )`][@stdlib/blas/ext/base/gindex-of-column]</span><span class="delimiter">: </span><span class="description">return the index of the first column in an input matrix which has the same elements as a provided search vector.</span>
214+
- <span class="signature">[`gindexOfFalsy( N, x, strideX )`][@stdlib/blas/ext/base/gindex-of-falsy]</span><span class="delimiter">: </span><span class="description">return the index of the first falsy element in a strided array.</span>
214215
- <span class="signature">[`gindexOfRow( order, M, N, A, LDA, x, strideX )`][@stdlib/blas/ext/base/gindex-of-row]</span><span class="delimiter">: </span><span class="description">return the index of the first row in an input matrix which has the same elements as a provided search vector.</span>
215216
- <span class="signature">[`gindexOfTruthy( N, x, strideX )`][@stdlib/blas/ext/base/gindex-of-truthy]</span><span class="delimiter">: </span><span class="description">return the index of the first truthy element in a strided array.</span>
216217
- <span class="signature">[`gindexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/gindex-of]</span><span class="delimiter">: </span><span class="description">return the first index of a specified search element in a strided array.</span>
217218
- <span class="signature">[`gjoinBetween( N, prefix, suffix, x, strideX, separators, strideS )`][@stdlib/blas/ext/base/gjoin-between]</span><span class="delimiter">: </span><span class="description">return a string by joining strided array elements using a specified separator for each pair of consecutive elements.</span>
218219
- <span class="signature">[`gjoin( N, separator, x, strideX )`][@stdlib/blas/ext/base/gjoin]</span><span class="delimiter">: </span><span class="description">return a string created by joining strided array elements using a specified separator.</span>
219220
- <span class="signature">[`glastIndexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/glast-index-of-row]</span><span class="delimiter">: </span><span class="description">return the index of the last row in an input matrix which has the same elements as a provided search vector.</span>
221+
- <span class="signature">[`glastIndexOfTruthy( N, x, strideX )`][@stdlib/blas/ext/base/glast-index-of-truthy]</span><span class="delimiter">: </span><span class="description">return the index of the last truthy element in a strided array.</span>
220222
- <span class="signature">[`glastIndexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/glast-index-of]</span><span class="delimiter">: </span><span class="description">return the last index of a specified search element in a strided array.</span>
221223
- <span class="signature">[`glinspace( N, start, stop, endpoint, x, strideX )`][@stdlib/blas/ext/base/glinspace]</span><span class="delimiter">: </span><span class="description">fill a strided array with linearly spaced values over a specified interval.</span>
222224
- <span class="signature">[`gminheapSiftDown( N, index, value, x, strideX )`][@stdlib/blas/ext/base/gminheap-sift-down]</span><span class="delimiter">: </span><span class="description">sift a value down from a specified index in a strided min-heap until the heap property is restored.</span>
225+
- <span class="signature">[`gminheapify( N, x, strideX )`][@stdlib/blas/ext/base/gminheapify]</span><span class="delimiter">: </span><span class="description">convert a strided array to a min-heap.</span>
223226
- <span class="signature">[`gmskrev( N, x, strideX, mask, strideMask )`][@stdlib/blas/ext/base/gmskrev]</span><span class="delimiter">: </span><span class="description">reverse a strided array in-place according to a mask.</span>
224227
- <span class="signature">[`gnancount( N, x, strideX )`][@stdlib/blas/ext/base/gnancount]</span><span class="delimiter">: </span><span class="description">calculate the number of non-`NaN` elements in a strided array.</span>
225228
- <span class="signature">[`gnannsumkbn( N, x, strideX, out, strideOut )`][@stdlib/blas/ext/base/gnannsumkbn]</span><span class="delimiter">: </span><span class="description">calculate the sum of strided array elements, ignoring `NaN` values and using an improved Kahan–Babuška algorithm.</span>
@@ -293,6 +296,7 @@ var o = ns;
293296
- <span class="signature">[`slastIndexOfRow( order, M, N, A, LDA, x, strideX, workspace, strideW )`][@stdlib/blas/ext/base/slast-index-of-row]</span><span class="delimiter">: </span><span class="description">return the index of the last row in a single-precision floating-point input matrix which has the same elements as a provided search vector.</span>
294297
- <span class="signature">[`slastIndexOf( N, searchElement, x, strideX )`][@stdlib/blas/ext/base/slast-index-of]</span><span class="delimiter">: </span><span class="description">return the last index of a specified search element in a single-precision floating-point strided array.</span>
295298
- <span class="signature">[`slinspace( N, start, stop, endpoint, x, strideX )`][@stdlib/blas/ext/base/slinspace]</span><span class="delimiter">: </span><span class="description">fill a single-precision floating-point strided array with linearly spaced values over a specified interval.</span>
299+
- <span class="signature">[`sminheapSiftDown( N, index, value, x, strideX )`][@stdlib/blas/ext/base/sminheap-sift-down]</span><span class="delimiter">: </span><span class="description">sift a value down from a specified index in a single-precision floating-point strided min-heap until the heap property is restored.</span>
296300
- <span class="signature">[`smskrev( N, x, strideX, mask, strideMask )`][@stdlib/blas/ext/base/smskrev]</span><span class="delimiter">: </span><span class="description">reverse a single-precision floating-point strided array in-place according to a mask.</span>
297301
- <span class="signature">[`snancount( N, x, strideX )`][@stdlib/blas/ext/base/snancount]</span><span class="delimiter">: </span><span class="description">calculate the number of non-`NaN` elements in a single-precision floating-point strided array.</span>
298302
- <span class="signature">[`snansum( N, x, strideX )`][@stdlib/blas/ext/base/snansum]</span><span class="delimiter">: </span><span class="description">calculate the sum of single-precision floating-point strided array elements, ignoring `NaN` values.</span>
@@ -732,6 +736,8 @@ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
732736

733737
[@stdlib/blas/ext/base/gindex-of-column]: https://github.com/stdlib-js/blas-ext-base-gindex-of-column
734738

739+
[@stdlib/blas/ext/base/gindex-of-falsy]: https://github.com/stdlib-js/blas-ext-base-gindex-of-falsy
740+
735741
[@stdlib/blas/ext/base/gindex-of-row]: https://github.com/stdlib-js/blas-ext-base-gindex-of-row
736742

737743
[@stdlib/blas/ext/base/gindex-of-truthy]: https://github.com/stdlib-js/blas-ext-base-gindex-of-truthy
@@ -744,12 +750,16 @@ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
744750

745751
[@stdlib/blas/ext/base/glast-index-of-row]: https://github.com/stdlib-js/blas-ext-base-glast-index-of-row
746752

753+
[@stdlib/blas/ext/base/glast-index-of-truthy]: https://github.com/stdlib-js/blas-ext-base-glast-index-of-truthy
754+
747755
[@stdlib/blas/ext/base/glast-index-of]: https://github.com/stdlib-js/blas-ext-base-glast-index-of
748756

749757
[@stdlib/blas/ext/base/glinspace]: https://github.com/stdlib-js/blas-ext-base-glinspace
750758

751759
[@stdlib/blas/ext/base/gminheap-sift-down]: https://github.com/stdlib-js/blas-ext-base-gminheap-sift-down
752760

761+
[@stdlib/blas/ext/base/gminheapify]: https://github.com/stdlib-js/blas-ext-base-gminheapify
762+
753763
[@stdlib/blas/ext/base/gmskrev]: https://github.com/stdlib-js/blas-ext-base-gmskrev
754764

755765
[@stdlib/blas/ext/base/gnancount]: https://github.com/stdlib-js/blas-ext-base-gnancount
@@ -896,6 +906,8 @@ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
896906

897907
[@stdlib/blas/ext/base/slinspace]: https://github.com/stdlib-js/blas-ext-base-slinspace
898908

909+
[@stdlib/blas/ext/base/sminheap-sift-down]: https://github.com/stdlib-js/blas-ext-base-sminheap-sift-down
910+
899911
[@stdlib/blas/ext/base/smskrev]: https://github.com/stdlib-js/blas-ext-base-smskrev
900912

901913
[@stdlib/blas/ext/base/snancount]: https://github.com/stdlib-js/blas-ext-base-snancount

docs/types/index.d.ts

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,17 @@ import gfindIndex = require( '@stdlib/blas-ext-base-gfind-index' );
156156
import gfindLastIndex = require( '@stdlib/blas-ext-base-gfind-last-index' );
157157
import gindexOf = require( '@stdlib/blas-ext-base-gindex-of' );
158158
import gindexOfColumn = require( '@stdlib/blas-ext-base-gindex-of-column' );
159+
import gindexOfFalsy = require( '@stdlib/blas-ext-base-gindex-of-falsy' );
159160
import gindexOfRow = require( '@stdlib/blas-ext-base-gindex-of-row' );
160161
import gindexOfTruthy = require( '@stdlib/blas-ext-base-gindex-of-truthy' );
161162
import gjoin = require( '@stdlib/blas-ext-base-gjoin' );
162163
import gjoinBetween = require( '@stdlib/blas-ext-base-gjoin-between' );
163164
import glastIndexOf = require( '@stdlib/blas-ext-base-glast-index-of' );
164165
import glastIndexOfRow = require( '@stdlib/blas-ext-base-glast-index-of-row' );
166+
import glastIndexOfTruthy = require( '@stdlib/blas-ext-base-glast-index-of-truthy' );
165167
import glinspace = require( '@stdlib/blas-ext-base-glinspace' );
166168
import gminheapSiftDown = require( '@stdlib/blas-ext-base-gminheap-sift-down' );
169+
import gminheapify = require( '@stdlib/blas-ext-base-gminheapify' );
167170
import gmskrev = require( '@stdlib/blas-ext-base-gmskrev' );
168171
import gnancount = require( '@stdlib/blas-ext-base-gnancount' );
169172
import gnannsumkbn = require( '@stdlib/blas-ext-base-gnannsumkbn' );
@@ -237,6 +240,7 @@ import sindexOfTruthy = require( '@stdlib/blas-ext-base-sindex-of-truthy' );
237240
import slastIndexOf = require( '@stdlib/blas-ext-base-slast-index-of' );
238241
import slastIndexOfRow = require( '@stdlib/blas-ext-base-slast-index-of-row' );
239242
import slinspace = require( '@stdlib/blas-ext-base-slinspace' );
243+
import sminheapSiftDown = require( '@stdlib/blas-ext-base-sminheap-sift-down' );
240244
import smskrev = require( '@stdlib/blas-ext-base-smskrev' );
241245
import snancount = require( '@stdlib/blas-ext-base-snancount' );
242246
import snansum = require( '@stdlib/blas-ext-base-snansum' );
@@ -4425,6 +4429,32 @@ interface Namespace {
44254429
*/
44264430
gindexOfColumn: typeof gindexOfColumn;
44274431

4432+
/**
4433+
* Returns the index of the first falsy element in a strided array.
4434+
*
4435+
* ## Notes
4436+
*
4437+
* - If unable to find a falsy element, the function returns `-1`.
4438+
*
4439+
* @param N - number of indexed elements
4440+
* @param x - input array
4441+
* @param strideX - stride length
4442+
* @returns index
4443+
*
4444+
* @example
4445+
* var x = [ 3.0, 2.0, 0.0, 1.0 ];
4446+
*
4447+
* var idx = ns.gindexOfFalsy( x.length, x, 1 );
4448+
* // returns 2
4449+
*
4450+
* @example
4451+
* var x = [ 3.0, 2.0, 0.0, 1.0 ];
4452+
*
4453+
* var idx = ns.gindexOfFalsy.ndarray( x.length, x, 1, 0 );
4454+
* // returns 2
4455+
*/
4456+
gindexOfFalsy: typeof gindexOfFalsy;
4457+
44284458
/**
44294459
* Returns the index of the first row in an input matrix which has the same elements as a provided search vector.
44304460
*
@@ -4598,6 +4628,32 @@ interface Namespace {
45984628
*/
45994629
glastIndexOfRow: typeof glastIndexOfRow;
46004630

4631+
/**
4632+
* Returns the index of the last truthy element in a strided array.
4633+
*
4634+
* ## Notes
4635+
*
4636+
* - If unable to find a truthy element, the function returns `-1`.
4637+
*
4638+
* @param N - number of indexed elements
4639+
* @param x - input array
4640+
* @param strideX - stride length
4641+
* @returns index
4642+
*
4643+
* @example
4644+
* var x = [ 0.0, 1.0, 0.0, 2.0 ];
4645+
*
4646+
* var idx = ns.glastIndexOfTruthy( x.length, x, 1 );
4647+
* // returns 3
4648+
*
4649+
* @example
4650+
* var x = [ 0.0, 1.0, 0.0, 2.0 ];
4651+
*
4652+
* var idx = ns.glastIndexOfTruthy.ndarray( x.length, x, 1, 0 );
4653+
* // returns 3
4654+
*/
4655+
glastIndexOfTruthy: typeof glastIndexOfTruthy;
4656+
46014657
/**
46024658
* Fills a strided array with linearly spaced values over a specified interval.
46034659
*
@@ -4664,6 +4720,32 @@ interface Namespace {
46644720
*/
46654721
gminheapSiftDown: typeof gminheapSiftDown;
46664722

4723+
/**
4724+
* Converts a strided array to a min-heap.
4725+
*
4726+
* ## Notes
4727+
*
4728+
* - The min-heap algorithm is sensitive to the presence of `NaN` values. Since `NaN` comparisons always return `false`, if `NaN` values are present in the input array, the results may be unpredictable.
4729+
*
4730+
* @param N - number of indexed elements
4731+
* @param x - input array
4732+
* @param strideX - stride length
4733+
* @returns input array
4734+
*
4735+
* @example
4736+
* var x = [ 7.0, 5.0, 3.0, 1.0, 9.0 ];
4737+
*
4738+
* ns.gminheapify( 5, x, 1 );
4739+
* // x => [ 1.0, 5.0, 3.0, 7.0, 9.0 ]
4740+
*
4741+
* @example
4742+
* var x = [ 7.0, 5.0, 3.0, 1.0, 9.0 ];
4743+
*
4744+
* ns.gminheapify.ndarray( 5, x, 1, 0 );
4745+
* // x => [ 1.0, 5.0, 3.0, 7.0, 9.0 ]
4746+
*/
4747+
gminheapify: typeof gminheapify;
4748+
46674749
/**
46684750
* Reverses a strided array in-place according to a mask.
46694751
*
@@ -6727,6 +6809,39 @@ interface Namespace {
67276809
*/
67286810
slinspace: typeof slinspace;
67296811

6812+
/**
6813+
* Sifts a value down from a specified index in a single-precision floating-point strided min-heap until the heap property is restored.
6814+
*
6815+
* ## Notes
6816+
*
6817+
* - The function assumes that the subtrees rooted at the children of `index` already satisfy the min-heap property and only the value being sifted may violate the min-heap invariant.
6818+
* - The min-heap algorithm is sensitive to the presence of `NaN` values. Since `NaN` comparisons always return `false`, if `NaN` values are present in the input array, the results may be unpredictable.
6819+
*
6820+
* @param N - number of indexed elements
6821+
* @param index - logical index at which to begin sifting
6822+
* @param value - value to place into the heap
6823+
* @param x - heap storage array
6824+
* @param strideX - stride length
6825+
* @returns heap storage array
6826+
*
6827+
* @example
6828+
* var Float32Array = require( '@stdlib/array-float32' );
6829+
*
6830+
* var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
6831+
*
6832+
* ns.sminheapSiftDown( 5, 0, 7.0, x, 1 );
6833+
* // x => <Float32Array>[ 2.0, 4.0, 3.0, 7.0, 5.0 ]
6834+
*
6835+
* @example
6836+
* var Float32Array = require( '@stdlib/array-float32' );
6837+
*
6838+
* var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
6839+
*
6840+
* ns.sminheapSiftDown.ndarray( 5, 0, 7.0, x, 1, 0 );
6841+
* // x => <Float32Array>[ 2.0, 4.0, 3.0, 7.0, 5.0 ]
6842+
*/
6843+
sminheapSiftDown: typeof sminheapSiftDown;
6844+
67306845
/**
67316846
* Reverses a single-precision floating-point strided array in-place according to a mask.
67326847
*

0 commit comments

Comments
 (0)